C# 클래스 GSF.Diagnostics.LogSubscriptionFileWriter

A log subscription that will write messages to a file
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

LogSubscriptionFileWriter ( int messageLimit ) : System

Creates a LogFileWriter that initially queues message

SetLoggingFileCount ( int maxFileCount ) : void

Sets the maximum number of log files before a new one will delete the oldest one.

SetPath ( string logDirectory ) : void

Sets the path of the log files.

SetPath ( string logDirectory, VerboseLevel level ) : void

Sets log file writer path and optionally its verbosity level.

비공개 메소드들

메소드 설명
OnNewFileComplete ( string fileName ) : void
SubscriberNewLogMessage ( LogMessage logMessage ) : void
WriteLogMessage ( LogMessage log ) : void
m_flushTask_Running ( object sender, EventArgs e ) : void

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

LogSubscriptionFileWriter() 공개 메소드

Creates a LogFileWriter that initially queues message
public LogSubscriptionFileWriter ( int messageLimit ) : System
messageLimit int the number of messages to maintain
리턴 System

SetLoggingFileCount() 공개 메소드

Sets the maximum number of log files before a new one will delete the oldest one.
public SetLoggingFileCount ( int maxFileCount ) : void
maxFileCount int
리턴 void

SetPath() 공개 메소드

Sets the path of the log files.
public SetPath ( string logDirectory ) : void
logDirectory string
리턴 void

SetPath() 공개 메소드

Sets log file writer path and optionally its verbosity level.
public SetPath ( string logDirectory, VerboseLevel level ) : void
logDirectory string
level VerboseLevel
리턴 void