C# Class Topshelf.Logging.NLogLogWriter

A logger that wraps to NLog. See http://stackoverflow.com/questions/7412156/how-to-retain-callsite-information-when-wrapping-nlog
Inheritance: LogWriter
ファイルを表示 Open project: phatboyg/Topshelf

Public Methods

Method Description
Debug ( LogWriterOutputProvider messageProvider ) : void
Debug ( object obj ) : void
Debug ( object obj, Exception exception ) : void
DebugFormat ( IFormatProvider formatProvider, string format ) : void
DebugFormat ( string format ) : void
Error ( LogWriterOutputProvider messageProvider ) : void
Error ( object obj ) : void
Error ( object obj, Exception exception ) : void
ErrorFormat ( IFormatProvider formatProvider, string format ) : void
ErrorFormat ( string format ) : void
Fatal ( LogWriterOutputProvider messageProvider ) : void
Fatal ( object obj ) : void
Fatal ( object obj, Exception exception ) : void
FatalFormat ( IFormatProvider formatProvider, string format ) : void
FatalFormat ( string format ) : void
Info ( LogWriterOutputProvider messageProvider ) : void
Info ( object obj ) : void
Info ( object obj, Exception exception ) : void
InfoFormat ( IFormatProvider formatProvider, string format ) : void
InfoFormat ( string format ) : void
Log ( Topshelf.Logging.LoggingLevel level, LogWriterOutputProvider messageProvider ) : void
Log ( Topshelf.Logging.LoggingLevel level, object obj ) : void
Log ( Topshelf.Logging.LoggingLevel level, object obj, Exception exception ) : void
LogFormat ( Topshelf.Logging.LoggingLevel level, IFormatProvider formatProvider, string format ) : void
LogFormat ( Topshelf.Logging.LoggingLevel level, string format ) : void
NLogLogWriter ( Logger log, string name ) : System

Create a new NLog logger instance.

Warn ( LogWriterOutputProvider messageProvider ) : void
Warn ( object obj ) : void
Warn ( object obj, Exception exception ) : void
WarnFormat ( IFormatProvider formatProvider, string format ) : void
WarnFormat ( string format ) : void

Private Methods

Method Description
GetNLogLevel ( Topshelf.Logging.LoggingLevel level ) : LogLevel
ToGenerator ( LogWriterOutputProvider provider ) : LogMessageGenerator

Method Details

Debug() public method

public Debug ( LogWriterOutputProvider messageProvider ) : void
messageProvider LogWriterOutputProvider
return void

Debug() public method

public Debug ( object obj ) : void
obj object
return void

Debug() public method

public Debug ( object obj, Exception exception ) : void
obj object
exception System.Exception
return void

DebugFormat() public method

public DebugFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider
format string
return void

DebugFormat() public method

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

Error() public method

public Error ( LogWriterOutputProvider messageProvider ) : void
messageProvider LogWriterOutputProvider
return void

Error() public method

public Error ( object obj ) : void
obj object
return void

Error() public method

public Error ( object obj, Exception exception ) : void
obj object
exception System.Exception
return void

ErrorFormat() public method

public ErrorFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider
format string
return void

ErrorFormat() public method

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

Fatal() public method

public Fatal ( LogWriterOutputProvider messageProvider ) : void
messageProvider LogWriterOutputProvider
return void

Fatal() public method

public Fatal ( object obj ) : void
obj object
return void

Fatal() public method

public Fatal ( object obj, Exception exception ) : void
obj object
exception System.Exception
return void

FatalFormat() public method

public FatalFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider
format string
return void

FatalFormat() public method

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

Info() public method

public Info ( LogWriterOutputProvider messageProvider ) : void
messageProvider LogWriterOutputProvider
return void

Info() public method

public Info ( object obj ) : void
obj object
return void

Info() public method

public Info ( object obj, Exception exception ) : void
obj object
exception System.Exception
return void

InfoFormat() public method

public InfoFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider
format string
return void

InfoFormat() public method

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

Log() public method

public Log ( Topshelf.Logging.LoggingLevel level, LogWriterOutputProvider messageProvider ) : void
level Topshelf.Logging.LoggingLevel
messageProvider LogWriterOutputProvider
return void

Log() public method

public Log ( Topshelf.Logging.LoggingLevel level, object obj ) : void
level Topshelf.Logging.LoggingLevel
obj object
return void

Log() public method

public Log ( Topshelf.Logging.LoggingLevel level, object obj, Exception exception ) : void
level Topshelf.Logging.LoggingLevel
obj object
exception System.Exception
return void

LogFormat() public method

public LogFormat ( Topshelf.Logging.LoggingLevel level, IFormatProvider formatProvider, string format ) : void
level Topshelf.Logging.LoggingLevel
formatProvider IFormatProvider
format string
return void

LogFormat() public method

public LogFormat ( Topshelf.Logging.LoggingLevel level, string format ) : void
level Topshelf.Logging.LoggingLevel
format string
return void

NLogLogWriter() public method

Create a new NLog logger instance.
public NLogLogWriter ( Logger log, string name ) : System
log Logger
name string Name of type to log as.
return System

Warn() public method

public Warn ( LogWriterOutputProvider messageProvider ) : void
messageProvider LogWriterOutputProvider
return void

Warn() public method

public Warn ( object obj ) : void
obj object
return void

Warn() public method

public Warn ( object obj, Exception exception ) : void
obj object
exception Exception
return void

WarnFormat() public method

public WarnFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider
format string
return void

WarnFormat() public method

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