AdoNetAppender GetLogStatement Method | Apache log4net™ SDK Documentation

Formats the log message into database statement text.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual string GetLogStatement(
    	LoggingEvent logEvent
    )

    Protected Overridable Function GetLogStatement (
    	logEvent As LoggingEvent
    ) As String

    protected:
    virtual String^ GetLogStatement(
    	LoggingEvent^ logEvent
    )

    abstract GetLogStatement :
            logEvent : LoggingEvent -> string
    override GetLogStatement :
            logEvent : LoggingEvent -> string

#### Parameters

logEvent
  Type: log4net.Core
  LoggingEvent
  The event being logged.

#### Return Value

Type: String
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

#### Reference

AdoNetAppender Class
log4net.Appender Namespace