C# Class GSF.Diagnostics.LogFileWriter

Inheritance: IDisposable
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Свойство Type Description
FileName string

Méthodes publiques

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

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

Flush() public méthode

Flushes the stream to the disk.
public Flush ( ) : void
Résultat void

LogFileWriter() public méthode

Creates a LogFileWriter that initially queues message
public LogFileWriter ( string logFileName ) : System
logFileName string
Résultat System

Write() public méthode

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

Property Details

FileName public_oe property

The file name
public string FileName
Résultat string