C# Class Examples.ExamplesConsole.NLogLogger

An example implementation of an external logging framework, in this case NLog. Uses a simple configuration that logs to console (DEBUG log level and above) and to a file (All log Levels).
Inheritance: ILogger
Exibir arquivo Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Public Methods

Method Description
Debug ( string message ) : void
Error ( string message ) : void
Fatal ( string message ) : void
Fatal ( string message, Exception ex ) : void
Info ( string message ) : void
NLogLogger ( ) : System

Initialise a new instance of the NLogLogger using a default configuration.

Shutdown ( ) : void
Trace ( string message ) : void
Warn ( string message ) : void

Method Details

Debug() public method

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

Error() public method

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

Fatal() public method

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

Fatal() public method

public Fatal ( string message, Exception ex ) : void
message string
ex System.Exception
return void

Info() public method

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

NLogLogger() public method

Initialise a new instance of the NLogLogger using a default configuration.
public NLogLogger ( ) : System
return System

Shutdown() public method

public Shutdown ( ) : void
return void

Trace() public method

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

Warn() public method

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