C# Class EpLibrary.cs.LogWorker

Log Worker
Inheritance: BaseTextFile, IDisposable
Afficher le fichier Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

Свойство Type Description
Dispose void
execute void
stop void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
Dispose ( bool isDisposing ) : void
execute ( ) : void

Start the log worker

stop ( ) : void

Stop the log worker

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

LogWorker() public méthode

Default copy constructor
public LogWorker ( LogWorker b ) : System
b LogWorker the copying object
Résultat System

LogWorker() public méthode

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

Stop() public méthode

Stop the logging
public Stop ( ) : void
Résultat void

WriteLog() public méthode

Writer given message to the log with current time.
public WriteLog ( string pMsg ) : void
pMsg string the message to print to the log file.
Résultat void

loadFromFile() protected méthode

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

writeLoop() protected méthode

Loop Function that writes to the file.
protected writeLoop ( ) : void
Résultat void