C# Класс GSF.Diagnostics.LogSubscriptionFileWriter

A log subscription that will write messages to a file
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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