AdoNetAppenderCommandText Property Apache log4net™ SDK Documentation
Gets or sets the command text that is used to insert logging events into the database.

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

public string CommandText { get; set; }

Property Value

Type: String
The command text used to insert logging events into the database.
Remarks

Either the text of the prepared statement or the name of the stored procedure to execute to write into the database.

The CommandType property determines if this text is a prepared statement or a stored procedure.

If this property is not set, the command text is retrieved by invoking GetLogStatement(LoggingEvent).

See Also

Reference