AdoNetAppenderParameter FormatValue Method | Apache log4net™ SDK Documentation

Renders the logging event and set the parameter value in the command.

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

C#
VB
C++
F#
Copy

    public virtual void FormatValue(
    	IDbCommand command,
    	LoggingEvent loggingEvent
    )

    Public Overridable Sub FormatValue (
    	command As IDbCommand,
    	loggingEvent As LoggingEvent
    )

    public:
    virtual void FormatValue(
    	IDbCommand^ command,
    	LoggingEvent^ loggingEvent
    )

    abstract FormatValue :
            command : IDbCommand *
            loggingEvent : LoggingEvent -> unit
    override FormatValue :
            command : IDbCommand *
            loggingEvent : LoggingEvent -> unit

#### Parameters

command
  Type: System.Data
  IDbCommand
  The command containing the parameter.
loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to be rendered.

Remarks

Renders the logging event using this parameters layout object. Sets the value of the parameter on the command object.

See Also

#### Reference

AdoNetAppenderParameter Class
log4net.Appender Namespace