C# Class Axiom.Core.Log

Log class for writing debug/log data to files.
Inheritance: IDisposable
Mostra file Open project: WolfgangSt/axiom

Public Methods

Method 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

Method Description
FireMessageLogged ( LogMessageLevel level, bool maskDebug, string message ) : void

Method Details

Dispose() public method

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

Log() public method

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

Log() public method

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?
return System

Write() public method

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.
return void

Write() public method

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.
return void

Write() public method

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.
return void