C# 클래스 EpLibrary.cs.LogWorker

Log Worker
상속: BaseTextFile, IDisposable
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
execute void
stop void

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
loadFromFile ( StreamReader stream ) : void

Actual load Function that loads values from the file.

writeLoop ( ) : void

Loop Function that writes to the file.

비공개 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void
execute ( ) : void

Start the log worker

stop ( ) : void

Stop the log worker

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

LogWorker() 공개 메소드

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

LogWorker() 공개 메소드

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

Stop() 공개 메소드

Stop the logging
public Stop ( ) : void
리턴 void

WriteLog() 공개 메소드

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

loadFromFile() 보호된 메소드

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

writeLoop() 보호된 메소드

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