Click or drag to resize

ConsoleAndFileLogger Class

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

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Frees all resources associated with this instance.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLog
Logs a value at a specified trace level.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWriteLineToLog
Writes a text to the log file.
Top
See Also