 | DatabaseTargetWrite Method (LogEventInfo) |
Writes the specified logging event to the database. It creates
a new database command, prepares parameters for it by calculating
layouts and executes the command.
Namespace:
NLog.Targets
Assembly:
NLog.Database (in NLog.Database.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxprotected override void Write(
LogEventInfo logEvent
)
Protected Overrides Sub Write (
logEvent As LogEventInfo
)
Dim logEvent As LogEventInfo
Me.Write(logEvent)
abstract Write :
logEvent : LogEventInfo -> unit
override Write :
logEvent : LogEventInfo -> unit
Parameters
- logEvent
- Type: NLogLogEventInfo
The logging event.
See Also