Logger Methods

The Logger type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsEnabled
Determines if logging is enabled for the specified level.
Public methodToString (Inherited from Object.)
Public methodWrite(Object)
Writes the specified message to appenders.
Public methodWrite(String)
Writes the specified message to appenders.
Public methodWrite(String, Exception)
Writes the specified message and exception to appenders.
Public methodWrite(String, Exception, LogLevel)
Writes the specified message and exception to appenders.
Public methodWriteFormat
Writes the message with specified format to appenders.
Public methodWriteIf(Boolean, Object)
Writes the specified message to appenders if condition is true.
Public methodWriteIf(Boolean, String)
Writes the specified message to appenders if condition is true.
Public methodWriteIf(LogLevel, String)
Writes the specified message if the log level is enabled.
Public methodWriteIf(Boolean, Object, Exception)
Writes the specified message and exception to appenders if condition is true.
Public methodWriteIf(LogLevel, String, Exception)
Writes the specified message and exception if the log level is enabled.
Public methodWriteLine
Writes the empty line to appenders.
Public methodWriteLine(Object)
Writes the specified message to appenders.
Public methodWriteLine(String)
Writes the specified message to appenders.
See Also