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
Afficher le fichier Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Debug ( string message ) : void
message string
Résultat void

Error() public méthode

public Error ( string message ) : void
message string
Résultat void

Fatal() public méthode

public Fatal ( string message ) : void
message string
Résultat void

Fatal() public méthode

public Fatal ( string message, Exception ex ) : void
message string
ex System.Exception
Résultat void

Info() public méthode

public Info ( string message ) : void
message string
Résultat void

NLogLogger() public méthode

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

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

Trace() public méthode

public Trace ( string message ) : void
message string
Résultat void

Warn() public méthode

public Warn ( string message ) : void
message string
Résultat void