Click or drag to resize

FileLogger Class

A simple logger that sends log entries to a text file. It operates in append mode (prior contents of the log file is preserved). It needs exclusive access to the file, so no concurrent access is allowed.
Inheritance Hierarchy
SystemObject
  Mavidian.DataConveyer.LoggingFileLogger

Namespace:  Mavidian.DataConveyer.Logging
Assembly:  DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax
public sealed class FileLogger : ILogger, 
	IDisposable

The FileLogger type exposes the following members.

Properties
  NameDescription
Public propertyLogDescription
Description of the process being logged; placed in the logger header. May be helpful in distinguishing between differenet entries place in the same log.
Public propertyLoggerType
Type of the logger, i.e. LogFile.
Public propertyLoggingThreshold
The least severe severity level to be logged. If not assigned during logger construction, a level of None will be assumed (i.e. no entries will be logged).
Top
Methods
  NameDescription
Public methodDispose
Dispose the underlying text writer.
Public methodLog
Send the log entry to a text file (log file).
Top
See Also