Common Logging 2.0 API Reference

AbstractSimpleLogger Constructor

Creates and initializes a the simple logger.

[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#]
AbstractSimpleLogger(
   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 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

AbstractSimpleLogger Class | Common.Logging.Simple Namespace