NLog Logging Library

Logger Members

Logger overview

Public Instance Properties

IsDebugEnabled Determines if logging is enabled for the Debug level.
IsErrorEnabled Determines if logging is enabled for the Error level.
IsFatalEnabled Determines if logging is enabled for the Fatal level.
IsInfoEnabled Determines if logging is enabled for the Info level.
IsTraceEnabled Determines if logging is enabled for the Trace level.
IsWarnEnabled Determines if logging is enabled for the Warn level.
Name Gets the name of the logger.

Public Instance Methods

DebugOverloaded. Writes the diagnostic message at the Debug level using the specified format provider and format parameters.
DebugException Writes the diagnostic message and exception at the Debug level.
ErrorOverloaded. Writes the diagnostic message at the Error level using the specified format provider and format parameters.
ErrorException Writes the diagnostic message and exception at the Error level.
FatalOverloaded. Writes the diagnostic message at the Fatal level using the specified format provider and format parameters.
FatalException Writes the diagnostic message and exception at the Fatal level.
InfoOverloaded. Writes the diagnostic message at the Info level using the specified format provider and format parameters.
InfoException Writes the diagnostic message and exception at the Info level.
IsEnabled Determines if logging is enabled for the specified level.
LogOverloaded. Writes the diagnostic message at the specified level using the specified format provider and format parameters.
LogException Writes the diagnostic message and exception at the specified level.
TraceOverloaded. Writes the diagnostic message at the Trace level using the specified format provider and format parameters.
TraceException Writes the diagnostic message and exception at the Trace level.
WarnOverloaded. Writes the diagnostic message at the Warn level using the specified format provider and format parameters.
WarnException Writes the diagnostic message and exception at the Warn level.

Public Instance Events

LoggerReconfigured Occurs when logger configuration changes.

See Also

Logger Class | NLog Namespace