Common Logging 2.0 API Reference

ConsoleOutLogger Constructor

Creates and initializes a logger that writes messages to Out.

[Visual Basic]
Public Sub New( _
   ByVal logName As String, _
   ByVal logLevel As LogLevel, _
   ByVal showLevel As Boolean, _
   ByVal showDateTime As Boolean, _
   ByVal showLogName As Boolean, _
   ByVal dateTimeFormat As String _
)
[C#]
ConsoleOutLogger(
   string logName,
   LogLevel logLevel,
   bool showLevel,
   bool showDateTime,
   bool showLogName,
   string dateTimeFormat
);

Parameters

logName
The name, usually type name of the calling class, of the logger.
logLevel
The current logging threshold. Messages recieved that are beneath this threshold will not be logged.
showLevel
Include the current log level in the log message.
showDateTime
Include the current time in the log message.
showLogName
Include the instance name in the log message.
dateTimeFormat
The date and time format to use in the log message.

See Also

ConsoleOutLogger Class | Common.Logging.Simple Namespace