C# Class EpLibrary.cs.LogWriter

Log Writer Singleton Instance
Inheritance: BaseTextFile
显示文件 Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Public Methods

Method Description
LogWriter ( ) : System

Default Constructor

LogWriter ( LogWriter b ) : System

Default Copy Constructor

LogWriter ( string logFilename = null ) : System

Default Constructor

WriteLog ( String pMsg ) : void

Writer given message to the log with current time.

Protected Methods

Method Description
loadFromFile ( StreamReader stream ) : void

Actual load Function that loads values from the file.

writeLoop ( ) : void

Loop Function that writes to the file.

Method Details

LogWriter() public method

Default Constructor
public LogWriter ( ) : System
return System

LogWriter() public method

Default Copy Constructor
public LogWriter ( LogWriter b ) : System
b LogWriter the object to copy from
return System

LogWriter() public method

Default Constructor
public LogWriter ( string logFilename = null ) : System
logFilename string
return System

WriteLog() public method

Writer given message to the log with current time.
public WriteLog ( String pMsg ) : void
pMsg String the message to print to the log file.
return void

loadFromFile() protected method

Actual load Function that loads values from the file.
protected loadFromFile ( StreamReader stream ) : void
stream System.IO.StreamReader stream from the file
return void

writeLoop() protected method

Loop Function that writes to the file.
protected writeLoop ( ) : void
return void