C# Class Common.Logging.Simple.DebugOutLogger

Inheritance: Common.Logging.Simple.AbstractSimpleLogger
Afficher le fichier Open project: net-commons/common-logging Class Usage Examples

Méthodes publiques

Méthode Description
DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.

Méthodes protégées

Méthode Description
WriteInternal ( LogLevel level, object message, Exception e ) : void

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.

Method Details

DebugOutLogger() public méthode

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.
public DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System
logName string The key, usually type key of the calling class, of the logger.
logLevel LogLevel The current logging threshold. Messages received that are beneath this threshold will not be logged.
showLevel bool Include the current log level in the log message.
showDateTime bool Include the current time in the log message.
showLogName bool Include the instance key in the log message.
dateTimeFormat string The date and time format to use in the log message.
Résultat System

WriteInternal() protected méthode

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.
protected WriteInternal ( LogLevel level, object message, Exception e ) : void
level LogLevel The of the message.
message object The log message.
e System.Exception An optional associated with the message.
Résultat void