C# Class Axiom.Core.Log

Log class for writing debug/log data to files.
Inheritance: IDisposable
Afficher le fichier Open project: WolfgangSt/axiom

Méthodes publiques

Méthode Description
Dispose ( ) : void

Called to dispose of this objects resources.

For the log, closes any open file streams and file writers.

Log ( string fileName ) : System

Constructor. Creates a log file that also logs debug output.

Log ( string fileName, bool debugOutput ) : System

Constructor.

Write ( LogMessageLevel level, bool maskDebug, string message ) : void

Write a message to the log.

Write ( bool maskDebug, string message ) : void

Write a message to the log.

Message is written with a LogMessageLevel of Normal, and debug output is not written.

Write ( string message ) : void

Write a message to the log.

Message is written with a LogMessageLevel of Normal, and debug output is not written.

Private Methods

Méthode Description
FireMessageLogged ( LogMessageLevel level, bool maskDebug, string message ) : void

Method Details

Dispose() public méthode

Called to dispose of this objects resources.
For the log, closes any open file streams and file writers.
public Dispose ( ) : void
Résultat void

Log() public méthode

Constructor. Creates a log file that also logs debug output.
public Log ( string fileName ) : System
fileName string Name of the log file to open.
Résultat System

Log() public méthode

Constructor.
public Log ( string fileName, bool debugOutput ) : System
fileName string Name of the log file to open.
debugOutput bool Write log messages to the debug output?
Résultat System

Write() public méthode

Write a message to the log.
public Write ( LogMessageLevel level, bool maskDebug, string message ) : void
level LogMessageLevel Importance of this logged message.
maskDebug bool If true, debug output will not be written.
message string Message to write, which can include string formatting tokens.
Résultat void

Write() public méthode

Write a message to the log.
Message is written with a LogMessageLevel of Normal, and debug output is not written.
public Write ( bool maskDebug, string message ) : void
maskDebug bool If true, debug output will not be written.
message string Message to write, which can include string formatting tokens.
Résultat void

Write() public méthode

Write a message to the log.
Message is written with a LogMessageLevel of Normal, and debug output is not written.
public Write ( string message ) : void
message string Message to write, which can include string formatting tokens.
Résultat void