Click or drag to resize

LogFileWriter Class

A log subscriber that will log messages to a file.
Inheritance Hierarchy
SystemObject
  GSF.DiagnosticsLogFileWriter

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public sealed class LogFileWriter : IDisposable
View Source

The LogFileWriter type exposes the following members.

Constructors
 NameDescription
Public methodLogFileWriter Creates a LogFileWriter that initially queues message
Top
Properties
 NameDescription
Public propertyLogCount The number of logs that have been written to this file.
Public propertyLogSize The current size of the log file.
Top
Methods
 NameDescription
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFlush Flushes the stream to the disk.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Writes the specified log to the file
Top
Fields
 NameDescription
Public fieldFileName The file name
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also