C# Class NetworkCommsDotNet.Tools.LiteLogger

A core logger that can be used to write log messages to the console and or a log file.
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
LiteLogger ( LogMode logMode ) : System

Initialise an instance of the core logger. If logging to a file also set LogFileLocationName.

LiteLogger ( LogMode logMode, string logFileLocationName ) : System

Initialise an instance of the core logger

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

Private Methods

Méthode Description
log ( string level, 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

LiteLogger() public méthode

Initialise an instance of the core logger. If logging to a file also set LogFileLocationName.
public LiteLogger ( LogMode logMode ) : System
logMode LogMode The log mode to use
Résultat System

LiteLogger() public méthode

Initialise an instance of the core logger
public LiteLogger ( LogMode logMode, string logFileLocationName ) : System
logMode LogMode The log mode to use
logFileLocationName string The log file location and name, i.e. logs/logFile.txt
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