Click or drag to resize

ConsoleAndFileLogger Class

An ILogger implementation that logs to the Console and to a file.
Inheritance Hierarchy
SystemObject
  ShellBoost.Core.UtilitiesConsoleAndFileLogger

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class ConsoleAndFileLogger : ILogger, 
	IDisposable

The ConsoleAndFileLogger type exposes the following members.

Constructors
  NameDescription
Public methodConsoleAndFileLogger
Initializes a new instance of the ConsoleAndFileLogger class.
Top
Properties
  NameDescription
Public propertyDateTimeFormat
Gets or sets an optional DateTime format. If null, the date and time will not be added to the log.
Public propertyLogFilePath
Gets the log file path.
Public propertyMaxLevel
Gets or sets the maximum trace level.
Public propertyPrefix
Gets or sets an optional prefix.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodFinalize
Frees all resources associated with this instance.
(Overrides ObjectFinalize.)
Public methodLog
Logs a value at a specified trace level.
Protected methodWriteLineToLog
Writes a text to the log file.
Top
See Also