C# Class Support.IO.Logger

Mostrar archivo Open project: nhmkdev/cardmaker

Public Methods

Method Description
AddLogLine ( string sLine ) : void

Adds a single line

AddLogLines ( string arrayLines ) : void

Adds an array of lines to the log

Clear ( ) : void

Clears the log (and log file if enabled)

EndLog ( ) : void

Concludes the log (only applies to file logging)

InitLogger ( LoggerI iLogger, bool bLogToFile ) : void

The logger must be initialized through this method.

Method Details

AddLogLine() public static method

Adds a single line
public static AddLogLine ( string sLine ) : void
sLine string Line to add
return void

AddLogLines() public static method

Adds an array of lines to the log
public static AddLogLines ( string arrayLines ) : void
arrayLines string Strings to log
return void

Clear() public static method

Clears the log (and log file if enabled)
public static Clear ( ) : void
return void

EndLog() public static method

Concludes the log (only applies to file logging)
public static EndLog ( ) : void
return void

InitLogger() public static method

The logger must be initialized through this method.
public static InitLogger ( LoggerI iLogger, bool bLogToFile ) : void
iLogger LoggerI An object implementing the LoggerI interface.
bLogToFile bool Flag indicating whether to log the output or not.
return void