Click or drag to resize

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: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntax
protected override void Write(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo
The logging event.
See Also