log4net SDK Reference |

# 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(
LoggingEvent logEvent
);

#### 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