C# Class GSF.Diagnostics.LogFileWriter

Inheritance: IDisposable
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Properties

Property Type Description
FileName string

Public Methods

Method Description
Dispose ( ) : void

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

Flush ( ) : void

Flushes the stream to the disk.

LogFileWriter ( string logFileName ) : System

Creates a LogFileWriter that initially queues message

Write ( LogMessage log, bool autoFlush = true ) : void

Writes the specified log to the file

Method Details

Dispose() public method

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

Flush() public method

Flushes the stream to the disk.
public Flush ( ) : void
return void

LogFileWriter() public method

Creates a LogFileWriter that initially queues message
public LogFileWriter ( string logFileName ) : System
logFileName string
return System

Write() public method

Writes the specified log to the file
public Write ( LogMessage log, bool autoFlush = true ) : void
log LogMessage
autoFlush bool
return void

Property Details

FileName public property

The file name
public string FileName
return string