C# Class EpLibrary.cs.LogWorker

Log Worker
Inheritance: BaseTextFile, IDisposable
Datei anzeigen Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

Property Type Description
Dispose void
execute void
stop void

Public Methods

Method Description
Dispose ( ) : void
LogWorker ( LogWorker b ) : System

Default copy constructor

LogWorker ( string fileName, Encoding encodingType = null ) : System

Default Constructor

Stop ( ) : void

Stop the logging

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.

Private Methods

Method Description
Dispose ( bool isDisposing ) : void
execute ( ) : void

Start the log worker

stop ( ) : void

Stop the log worker

Method Details

Dispose() public method

public Dispose ( ) : void
return void

LogWorker() public method

Default copy constructor
public LogWorker ( LogWorker b ) : System
b LogWorker the copying object
return System

LogWorker() public method

Default Constructor
public LogWorker ( string fileName, Encoding encodingType = null ) : System
fileName string name of log file
encodingType System.Text.Encoding encoding type
return System

Stop() public method

Stop the logging
public Stop ( ) : void
return void

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

writeLoop() protected method

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