C# Class DotNetXri.Logger

A general logger for the entire DotNetXri library.
Because this logger is intended for use with non-localized strings, the overloads that take CultureInfo have been removed, and CultureInfo.InvariantCulture is used implicitly.
Afficher le fichier Open project: AArnott/dotnetxri

Méthodes publiques

Méthode Description
Debug ( object message ) : void

Log a message object with the Level.Debug level.

This method first checks if this logger is DEBUG enabled by comparing the level of this logger with the Level.Debug level. If this logger is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Debug(object,Exception) form instead.

Debug ( object message, Exception exception ) : void

Log a message object with the Level.Debug level including the stack trace of the Exception passed as a parameter.

See the Debug(object) form for more detailed information.

DebugFormat ( string format ) : void

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

DebugFormat ( string format, object arg0 ) : void

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

DebugFormat ( string format, object arg0, object arg1 ) : void

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

DebugFormat ( string format, object arg0, object arg1, object arg2 ) : void

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

Error ( object message ) : void

Logs a message object with the Level.Error level.

This method first checks if this logger is ERROR enabled by comparing the level of this logger with the Level.Error level. If this logger is ERROR enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Error(object,Exception) form instead.

Error ( object message, Exception exception ) : void

Log a message object with the Level.Error level including the stack trace of the Exception passed as a parameter.

See the Error(object) form for more detailed information.

ErrorFormat ( string format ) : void

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object) methods instead.

ErrorFormat ( string format, object arg0 ) : void

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

ErrorFormat ( string format, object arg0, object arg1 ) : void

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

ErrorFormat ( string format, object arg0, object arg1, object arg2 ) : void

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

Fatal ( object message ) : void

Log a message object with the Level.Fatal level.

This method first checks if this logger is FATAL enabled by comparing the level of this logger with the Level.Fatal level. If this logger is FATAL enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Fatal(object,Exception) form instead.

Fatal ( object message, Exception exception ) : void

Log a message object with the Level.Fatal level including the stack trace of the Exception passed as a parameter.

See the Fatal(object) form for more detailed information.

FatalFormat ( string format ) : void

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object) methods instead.

FatalFormat ( string format, object arg0 ) : void

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

FatalFormat ( string format, object arg0, object arg1 ) : void

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

FatalFormat ( string format, object arg0, object arg1, object arg2 ) : void

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

Info ( object message ) : void

Logs a message object with the Level.Info level.

This method first checks if this logger is INFO enabled by comparing the level of this logger with the Level.Info level. If this logger is INFO enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Info(object,Exception) form instead.

Info ( object message, Exception exception ) : void

Logs a message object with the INFO level including the stack trace of the Exception passed as a parameter.

See the Info(object) form for more detailed information.

InfoFormat ( string format ) : void

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object) methods instead.

InfoFormat ( string format, object arg0 ) : void

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

InfoFormat ( string format, object arg0, object arg1 ) : void

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

InfoFormat ( string format, object arg0, object arg1, object arg2 ) : void

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

Warn ( object message ) : void

Log a message object with the Level.Warn level.

This method first checks if this logger is WARN enabled by comparing the level of this logger with the Level.Warn level. If this logger is WARN enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Warn(object,Exception) form instead.

Warn ( object message, Exception exception ) : void

Log a message object with the Level.Warn level including the stack trace of the Exception passed as a parameter.

See the Warn(object) form for more detailed information.

WarnFormat ( string format ) : void

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object) methods instead.

WarnFormat ( string format, object arg0 ) : void

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

WarnFormat ( string format, object arg0, object arg1 ) : void

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

WarnFormat ( string format, object arg0, object arg1, object arg2 ) : void

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

Private Methods

Méthode Description
Create ( Type type ) : ILog

Creates an additional logger on demand for a subsection of the application.

Create ( string name ) : ILog

Creates an additional logger on demand for a subsection of the application.

InitializeFacade ( string name ) : ILog

Discovers the presence of Log4net.dll and other logging mechanisms and returns the best available logger.

Method Details

Debug() public static méthode

Log a message object with the Level.Debug level.

This method first checks if this logger is DEBUG enabled by comparing the level of this logger with the Level.Debug level. If this logger is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Debug(object,Exception) form instead.

public static Debug ( object message ) : void
message object The message object to log.
Résultat void

Debug() public static méthode

Log a message object with the Level.Debug level including the stack trace of the Exception passed as a parameter.

See the Debug(object) form for more detailed information.

public static Debug ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

DebugFormat() public static méthode

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

public static DebugFormat ( string format ) : void
format string A String containing zero or more format items
Résultat void

DebugFormat() public static méthode

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

public static DebugFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
Résultat void

DebugFormat() public static méthode

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

public static DebugFormat ( string format, object arg0, object arg1 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
Résultat void

DebugFormat() public static méthode

Logs a formatted message string with the Level.Debug level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Debug(object,Exception) methods instead.

public static DebugFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
arg2 object An Object to format
Résultat void

Error() public static méthode

Logs a message object with the Level.Error level.

This method first checks if this logger is ERROR enabled by comparing the level of this logger with the Level.Error level. If this logger is ERROR enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Error(object,Exception) form instead.

public static Error ( object message ) : void
message object The message object to log.
Résultat void

Error() public static méthode

Log a message object with the Level.Error level including the stack trace of the Exception passed as a parameter.

See the Error(object) form for more detailed information.

public static Error ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

ErrorFormat() public static méthode

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object) methods instead.

public static ErrorFormat ( string format ) : void
format string A String containing zero or more format items
Résultat void

ErrorFormat() public static méthode

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

public static ErrorFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
Résultat void

ErrorFormat() public static méthode

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

public static ErrorFormat ( string format, object arg0, object arg1 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
Résultat void

ErrorFormat() public static méthode

Logs a formatted message string with the Level.Error level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Error(object,Exception) methods instead.

public static ErrorFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
arg2 object An Object to format
Résultat void

Fatal() public static méthode

Log a message object with the Level.Fatal level.

This method first checks if this logger is FATAL enabled by comparing the level of this logger with the Level.Fatal level. If this logger is FATAL enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Fatal(object,Exception) form instead.

public static Fatal ( object message ) : void
message object The message object to log.
Résultat void

Fatal() public static méthode

Log a message object with the Level.Fatal level including the stack trace of the Exception passed as a parameter.

See the Fatal(object) form for more detailed information.

public static Fatal ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

FatalFormat() public static méthode

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object) methods instead.

public static FatalFormat ( string format ) : void
format string A String containing zero or more format items
Résultat void

FatalFormat() public static méthode

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

public static FatalFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
Résultat void

FatalFormat() public static méthode

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

public static FatalFormat ( string format, object arg0, object arg1 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
Résultat void

FatalFormat() public static méthode

Logs a formatted message string with the Level.Fatal level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Fatal(object,Exception) methods instead.

public static FatalFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
arg2 object An Object to format
Résultat void

Info() public static méthode

Logs a message object with the Level.Info level.

This method first checks if this logger is INFO enabled by comparing the level of this logger with the Level.Info level. If this logger is INFO enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Info(object,Exception) form instead.

public static Info ( object message ) : void
message object The message object to log.
Résultat void

Info() public static méthode

Logs a message object with the INFO level including the stack trace of the Exception passed as a parameter.

See the Info(object) form for more detailed information.

public static Info ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

InfoFormat() public static méthode

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object) methods instead.

public static InfoFormat ( string format ) : void
format string A String containing zero or more format items
Résultat void

InfoFormat() public static méthode

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

public static InfoFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
Résultat void

InfoFormat() public static méthode

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

public static InfoFormat ( string format, object arg0, object arg1 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
Résultat void

InfoFormat() public static méthode

Logs a formatted message string with the Level.Info level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Info(object,Exception) methods instead.

public static InfoFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
arg2 object An Object to format
Résultat void

Warn() public static méthode

Log a message object with the Level.Warn level.

This method first checks if this logger is WARN enabled by comparing the level of this logger with the Level.Warn level. If this logger is WARN enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate log4net.ObjectRenderer.IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Warn(object,Exception) form instead.

public static Warn ( object message ) : void
message object The message object to log.
Résultat void

Warn() public static méthode

Log a message object with the Level.Warn level including the stack trace of the Exception passed as a parameter.

See the Warn(object) form for more detailed information.

public static Warn ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

WarnFormat() public static méthode

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object) methods instead.

public static WarnFormat ( string format ) : void
format string A String containing zero or more format items
Résultat void

WarnFormat() public static méthode

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

public static WarnFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
Résultat void

WarnFormat() public static méthode

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

public static WarnFormat ( string format, object arg0, object arg1 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
Résultat void

WarnFormat() public static méthode

Logs a formatted message string with the Level.Warn level.

The message is formatted using the String.Format method. See String.Format(string, object[]) for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn(object,Exception) methods instead.

public static WarnFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
arg1 object An Object to format
arg2 object An Object to format
Résultat void