Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

AdoNetAppender.GetLogStatement�Method�

Formats the log message into database statement text.

[Visual�Basic]
Overridable�Protected�Function�GetLogStatement( _
���ByVal logEvent�As�LoggingEvent�_
)�As�String
[C#]
protected�virtual�string�GetLogStatement(
���LoggingEventlogEvent
);

Parameters

logEvent
The event being logged.

Return Value

Text that can be passed to a IDbCommand.

Remarks

This method can be overridden by subclasses to provide more control over the format of the database statement.

See Also

AdoNetAppender Class | log4net.Appender Namespace