C# Class JustAProgrammer.ADPR.Log4Net.ADPRLog

Inheritance: log4net.Core.LogImpl, IADPRLog
ファイルを表示 Open project: zippy1981/AppDomainPoshRunner

Public Methods

Method Description
ADPRLog ( ILogger logger ) : System

Construct a new wrapper for the logger.

The specified logger to wrap.

Verbose ( object message ) : void

Logs a message object with the VERBOSE level.

This method first checks if this logger is VERBOSE enabled by comparing the level of this logger with the VERBOSE level. If this logger is VERBOSE 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 M:Verbose(object,Exception) form instead.

Verbose ( object message, Exception exception ) : void

Logs a message object with the VERBOSE level.

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

See the M:Verbose(object) form for more detailed information.

VerboseFormat ( IFormatProvider provider, string format ) : void

Logs a formatted message string with the VERBOSE level.

The message is formatted using the M:String.Format(IFormatProvider, string, object[]) method. See String.Format 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 M:Verbose(object) methods instead.

VerboseFormat ( string format ) : void

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

VerboseFormat ( string format, object arg0 ) : void

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

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

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

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

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

Protected Methods

Method Description
ReloadLevels ( ILoggerRepository repository ) : void

Virtual method called when the configuration of the repository changes

Virtual method called when the configuration of the repository changes

Method Details

ADPRLog() public method

Construct a new wrapper for the logger.

The specified logger to wrap.

public ADPRLog ( ILogger logger ) : System
logger ILogger The logger to wrap.
return System

ReloadLevels() protected method

Virtual method called when the configuration of the repository changes

Virtual method called when the configuration of the repository changes

protected ReloadLevels ( ILoggerRepository repository ) : void
repository ILoggerRepository the repository holding the levels
return void

Verbose() public method

Logs a message object with the VERBOSE level.

This method first checks if this logger is VERBOSE enabled by comparing the level of this logger with the VERBOSE level. If this logger is VERBOSE 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 M:Verbose(object,Exception) form instead.

public Verbose ( object message ) : void
message object The message object to log.
return void

Verbose() public method

Logs a message object with the VERBOSE level.

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

See the M:Verbose(object) form for more detailed information.

public Verbose ( object message, Exception exception ) : void
message object The message object to log.
exception System.Exception The exception to log, including its stack trace.
return void

VerboseFormat() public method

Logs a formatted message string with the VERBOSE level.

The message is formatted using the M:String.Format(IFormatProvider, string, object[]) method. See String.Format 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 M:Verbose(object) methods instead.

public VerboseFormat ( IFormatProvider provider, string format ) : void
provider IFormatProvider An that supplies culture-specific formatting information
format string A String containing zero or more format items
return void

VerboseFormat() public method

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

public VerboseFormat ( string format ) : void
format string A String containing zero or more format items
return void

VerboseFormat() public method

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

public VerboseFormat ( string format, object arg0 ) : void
format string A String containing zero or more format items
arg0 object An Object to format
return void

VerboseFormat() public method

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

public VerboseFormat ( 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
return void

VerboseFormat() public method

Logs a formatted message string with the VERBOSE level.

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

The string is formatted using the CultureInfo.InvariantCulture format provider. To specify a localized provider use the M:VerboseFormat(IFormatProvider,string,object[]) method.

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

public VerboseFormat ( 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
return void