C# Class Kinect.Common.LogExtensions

Extension methods for the log4net logging framework
显示文件 Open project: atosorigin/Kinect

Public Methods

Method Description
IfDebug ( this log, object message ) : void

Logs a message object with the log4net.Core.Level.Debug level

IfDebug ( this log, object message, Exception exception ) : void

Logs a message object with the log4net.Core.Level.Debug level, including the stack trace of the System.Exception passed with

IfDebugFormat ( this log, IFormatProvider provider, string format ) : void

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

IfDebugFormat ( this log, string format ) : void

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

IfError ( this log, object message ) : void

Logs a message object with the log4net.Core.Level.Error level

IfError ( this log, object message, Exception exception ) : void

Logs a message object with the log4net.Core.Level.Error level, including the stack trace of the System.Exception passed with

IfErrorFormat ( this log, IFormatProvider provider, string format ) : void

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

IfErrorFormat ( this log, string format ) : void

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

IfFatal ( this log, object message ) : void

Logs a message object with the log4net.Core.Level.Fatal level

IfFatal ( this log, object message, Exception exception ) : void

Logs a message object with the log4net.Core.Level.Fatal level, including the stack trace of the System.Exception passed with

IfFatalFormat ( this log, IFormatProvider provider, string format ) : void

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

IfFatalFormat ( this log, string format ) : void

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

IfInfo ( this log, object message ) : void

Logs a message object with the log4net.Core.Level.Info level

IfInfo ( this log, object message, Exception exception ) : void

Logs a message object with the log4net.Core.Level.Info level, including the stack trace of the System.Exception passed with

IfInfoFormat ( this log, IFormatProvider provider, string format ) : void

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

IfInfoFormat ( this log, string format ) : void

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

IfWarn ( this log, object message ) : void

Logs a message object with the log4net.Core.Level.Warn level

IfWarn ( this log, object message, Exception exception ) : void

Logs a message object with the log4net.Core.Level.Warn level, including the stack trace of the System.Exception passed with

IfWarnFormat ( this log, IFormatProvider provider, string format ) : void

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

IfWarnFormat ( this log, string format ) : void

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

Method Details

IfDebug() public static method

Logs a message object with the log4net.Core.Level.Debug level
public static IfDebug ( this log, object message ) : void
log this Instance of
message object The message object to log
return void

IfDebug() public static method

Logs a message object with the log4net.Core.Level.Debug level, including the stack trace of the System.Exception passed with
public static IfDebug ( this log, object message, Exception exception ) : void
log this Instance of
message object The message object to log
exception System.Exception The exception to log, including its stack trace
return void

IfDebugFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Debug level
public static IfDebugFormat ( this log, IFormatProvider provider, string format ) : void
log this Instance of
provider IFormatProvider An that supplies culture-specific format information
format string A string containing zero or more format items
return void

IfDebugFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Debug level
public static IfDebugFormat ( this log, string format ) : void
log this Instance of
format string A string containing zero or more format items
return void

IfError() public static method

Logs a message object with the log4net.Core.Level.Error level
public static IfError ( this log, object message ) : void
log this Instance of
message object The message object to log
return void

IfError() public static method

Logs a message object with the log4net.Core.Level.Error level, including the stack trace of the System.Exception passed with
public static IfError ( this log, object message, Exception exception ) : void
log this Instance of
message object The message object to log
exception System.Exception The exception to log, including its stack trace
return void

IfErrorFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Error level
public static IfErrorFormat ( this log, IFormatProvider provider, string format ) : void
log this Instance of
provider IFormatProvider An that supplies culture-specific format information
format string A string containing zero or more format items
return void

IfErrorFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Error level
public static IfErrorFormat ( this log, string format ) : void
log this Instance of
format string A string containing zero or more format items
return void

IfFatal() public static method

Logs a message object with the log4net.Core.Level.Fatal level
public static IfFatal ( this log, object message ) : void
log this Instance of
message object The message object to log
return void

IfFatal() public static method

Logs a message object with the log4net.Core.Level.Fatal level, including the stack trace of the System.Exception passed with
public static IfFatal ( this log, object message, Exception exception ) : void
log this Instance of
message object The message object to log
exception System.Exception The exception to log, including its stack trace
return void

IfFatalFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Fatal level
public static IfFatalFormat ( this log, IFormatProvider provider, string format ) : void
log this Instance of
provider IFormatProvider An that supplies culture-specific format information
format string A string containing zero or more format items
return void

IfFatalFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Fatal level
public static IfFatalFormat ( this log, string format ) : void
log this Instance of
format string A string containing zero or more format items
return void

IfInfo() public static method

Logs a message object with the log4net.Core.Level.Info level
public static IfInfo ( this log, object message ) : void
log this Instance of
message object The message object to log
return void

IfInfo() public static method

Logs a message object with the log4net.Core.Level.Info level, including the stack trace of the System.Exception passed with
public static IfInfo ( this log, object message, Exception exception ) : void
log this Instance of
message object The message object to log
exception System.Exception The exception to log, including its stack trace
return void

IfInfoFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Info level
public static IfInfoFormat ( this log, IFormatProvider provider, string format ) : void
log this Instance of
provider IFormatProvider An that supplies culture-specific format information
format string A string containing zero or more format items
return void

IfInfoFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Info level
public static IfInfoFormat ( this log, string format ) : void
log this Instance of
format string A string containing zero or more format items
return void

IfWarn() public static method

Logs a message object with the log4net.Core.Level.Warn level
public static IfWarn ( this log, object message ) : void
log this Instance of
message object The message object to log
return void

IfWarn() public static method

Logs a message object with the log4net.Core.Level.Warn level, including the stack trace of the System.Exception passed with
public static IfWarn ( this log, object message, Exception exception ) : void
log this Instance of
message object The message object to log
exception Exception The exception to log, including its stack trace
return void

IfWarnFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Warn level
public static IfWarnFormat ( this log, IFormatProvider provider, string format ) : void
log this Instance of
provider IFormatProvider An that supplies culture-specific format information
format string A string containing zero or more format items
return void

IfWarnFormat() public static method

Logs a formatted message string with the log4net.Core.Level.Warn level
public static IfWarnFormat ( this log, string format ) : void
log this Instance of
format string A string containing zero or more format items
return void