C# Class GSF.Diagnostics.LogSubscriptionFileWriter

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

Méthodes publiques

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

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

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

LogSubscriptionFileWriter() public méthode

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

SetLoggingFileCount() public méthode

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

SetPath() public méthode

Sets the path of the log files.
public SetPath ( string logDirectory ) : void
logDirectory string
Résultat void

SetPath() public méthode

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