Click or drag to resize

Logger Class

A Logging class implementing the Singleton pattern and an internal Queue to be flushed perdiodically
Inheritance Hierarchy
SystemObject
  Koden.Utils.LoggerLogger

Namespace:  Koden.Utils.Logger
Assembly:  Koden.Utils.Logger (in Koden.Utils.Logger.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Logger : IDisposable, ILogger

The Logger type exposes the following members.

Properties
  NameDescription
Public propertyAppendToDayLogFile
Gets or sets a value indicating whether to append to daily log file.
Public propertyCopyToConsole
Gets or sets wether to write to the console.
Public propertyCurrentLogFile
Gets or sets the log path and file currently being used.
Public propertyIsDebug
Gets or sets a value indicating whether this instance is in debug mode.
Public propertyIsEnabled
Gets or sets a value indicating whether to write logs to a file.
Public propertyIsVerbose
Gets or sets wether the logger is in Verbose mode.
Public propertyLogErrorToEventLog
Gets or sets a value indicating whether to log errors to event log.
Public propertyLogInformationToEventLog
Gets or sets a value indicating whether log information records to event log. (Probably not a good idea)
Public propertyLogToEventLog
Gets or sets a value indicating whether to log to event log.
Public propertyLogWarningToEventLog
Gets or sets a value indicating whether log warnings to event log.
Public propertySourceNameForEventLog
Gets or sets a value indicating the source name to use for event log logging.
Top
Methods
  NameDescription
Public methodDebug
Logs a Debug message.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEmptyLine
Writes a Separator line to the LogFile. ============================== yyyy-MM-dd hh:mm:ss ============================
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodError
Logs an Error message.
Protected methodFinalize
Finalizes an instance of the Logger class.
(Overrides ObjectFinalize.)
Public methodFlushLog
Flushes the Queue to the physical log file
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInfo
Logs an informational message.
Public methodStatic memberInstance(String)
An LogWriter instance that exposes a single instance
Public methodStatic memberInstance(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, String, String)
Instances the specified log to file.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRunningLog
Gets or sets the running log (for sending just current log via Email, etc).
Public methodSeparator
Writes a Separator line to the LogFile. ============================== yyyy-MM-dd hh:mm:ss ============================
Public methodToHTMLTable
Creates a string to contain the HTML representation of the log using a table.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerbose
Logs an informational message only if IsVerbose is true.
Public methodWarning
Logs a warning message.
Public methodWriteRetVal
Parses FWRetVal and writes to log - quick way to write either Error or Success.
Top
See Also