C# Class GSF.Diagnostics.LogSubscriptionFileWriter

A log subscription that will write messages to a file
Inheritance: IDisposable
Mostrar archivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
OnNewFileComplete ( string fileName ) : void
SubscriberNewLogMessage ( LogMessage logMessage ) : void
WriteLogMessage ( LogMessage log ) : void
m_flushTask_Running ( object sender, EventArgs e ) : void

Method Details

Dispose() public method

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

LogSubscriptionFileWriter() public method

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

SetLoggingFileCount() public method

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

SetPath() public method

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

SetPath() public method

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