C# Class Chinchilla.Logging.NLog.NLogLogger

Inheritance: ILogger
Show file Open project: jonnii/chinchilla

Public Methods

Method Description
Debug ( string message ) : void
DebugFormat ( string format ) : void
Error ( Exception exception ) : void
Error ( Exception exception, string message ) : void
ErrorFormat ( Exception exception, string format ) : void
Info ( string message ) : void
InfoFormat ( string format ) : void
LogInternal ( NLog.LogLevel level, string message, Exception ex = null ) : void

Log to the wrapped NLog logger

Protected Methods

Method Description
NLogLogger ( Logger logger ) : System

Wrap an instance of an NLog logger

Method Details

Debug() public method

public Debug ( string message ) : void
message string
return void

DebugFormat() public method

public DebugFormat ( string format ) : void
format string
return void

Error() public method

public Error ( Exception exception ) : void
exception System.Exception
return void

Error() public method

public Error ( Exception exception, string message ) : void
exception System.Exception
message string
return void

ErrorFormat() public method

public ErrorFormat ( Exception exception, string format ) : void
exception System.Exception
format string
return void

Info() public method

public Info ( string message ) : void
message string
return void

InfoFormat() public method

public InfoFormat ( string format ) : void
format string
return void

LogInternal() public method

Log to the wrapped NLog logger
public LogInternal ( NLog.LogLevel level, string message, Exception ex = null ) : void
level NLog.LogLevel
message string
ex System.Exception
return void

NLogLogger() protected method

Wrap an instance of an NLog logger
protected NLogLogger ( Logger logger ) : System
logger NLog.Logger NLog logger to wrap
return System