C# Class SANTA.IO.Log

A class that writes information to a log file.
Mostra file Open project: siegleal/iSanta

Public Methods

Method Description
InitLog ( ) : void

Initializes the log by copying the existing log to a backup location.

LogError ( String message ) : void

Writes an error message to the log file.

LogInfo ( String message ) : void

Writes an informatory message to the log file.

LogWarning ( String message ) : void

Writes a warning message to the log file.

TestLog ( ) : void

A test method for the log file to make sure it writes messages and parameters correctly.

Private Methods

Method Description
WriteLog ( String message, String parameters ) : void

Writes a log message to the log file.

Method Details

InitLog() public static method

Initializes the log by copying the existing log to a backup location.
public static InitLog ( ) : void
return void

LogError() public static method

Writes an error message to the log file.
public static LogError ( String message ) : void
message String The message to write.
return void

LogInfo() public static method

Writes an informatory message to the log file.
public static LogInfo ( String message ) : void
message String The message to write.
return void

LogWarning() public static method

Writes a warning message to the log file.
public static LogWarning ( String message ) : void
message String The message to write.
return void

TestLog() public static method

A test method for the log file to make sure it writes messages and parameters correctly.
public static TestLog ( ) : void
return void