An NDoc Documented Class Library

Logger Members

Logger overview

Public Static Properties

CurrentLevel Set all loggers to this level
LogToConsole If this property is true then logs will be written to the console.
LogToTrace If this property is true then logs will be written using Trace.
PrimaryLogFile The primary log file is simply the first file appender that has been added to the logger.
ShowClassNamesIf true then class-names will be shown in log.
ShowTimestampIf true then timestamps will be shown in log.

Public Static Methods

AddAppender Add an appender to our list
GetLoggerOverloaded. Get a logger for the supplied class
RemoveAppender Remove an appender from our list
Shutdown Close and remove all appenders and loggers

Public Static Events

LogMessageReceived If this event is set then all logging events are directed to the event as well as the loggers.

Public Instance Properties

DebugEnabled Is debug logging enabled?
InfoEnabled Is info logging enabled for the supplied level?

Public Instance Methods

DebugOverloaded. Log a debug level message
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
ErrorOverloaded. Log an error level message
FatalOverloaded. Log a fatal level message
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
InfoOverloaded. Log an info level message
IsEnabledFor Is logging enabled for the supplied level?
Log Log a message using the given level.
LogObject Logs the public properties of an object.
ToString (inherited from Object) Returns a String that represents the current Object.
WarnOverloaded. Log a warning level message

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Logger Class | EnterpriseDT.Util.Debug Namespace