Common Logging 2.0 API Reference

AbstractSimpleLogger Members

AbstractSimpleLogger overview

Public Instance Constructors

AbstractSimpleLogger Constructor Creates and initializes a the simple logger.

Public Instance Properties

CurrentLogLevel The current logging threshold. Messages recieved that are beneath this threshold will not be logged.
DateTimeFormat The date and time format to use in the log message.
HasDateTimeFormat Determines Whether DateTimeFormat is set.
IsDebugEnabled Returns true if the current LogLevel is greater than or equal to Debug. If it is, all messages will be sent to Out.
IsErrorEnabled Returns true if the current LogLevel is greater than or equal to Error. If it is, only messages with a LogLevel of Error and Fatal will be sent to Out.
IsFatalEnabled Returns true if the current LogLevel is greater than or equal to Fatal. If it is, only messages with a LogLevel of Fatal will be sent to Out.
IsInfoEnabled Returns true if the current LogLevel is greater than or equal to Info. If it is, only messages with a LogLevel of Info, Warn, Error, and Fatal will be sent to Out.
IsTraceEnabled Returns true if the current LogLevel is greater than or equal to Trace. If it is, all messages will be sent to Out.
IsWarnEnabled Returns true if the current LogLevel is greater than or equal to Warn. If it is, only messages with a LogLevel of Warn, Error, and Fatal will be sent to Out.
Name The name of the logger.
ShowDateTime Include the current time in the log message.
ShowLevel Include the current log level in the log message.
ShowLogName Include the instance name in the log message.

Public Instance Methods

Debug (inherited from AbstractLogger)Overloaded. Log a message object with the Debug level.
DebugFormat (inherited from AbstractLogger)Overloaded. Log a message with the Debug level.
Equals (inherited from Object) 
Error (inherited from AbstractLogger)Overloaded. Log a message object with the Error level.
ErrorFormat (inherited from AbstractLogger)Overloaded. Log a message with the Error level.
Fatal (inherited from AbstractLogger)Overloaded. Log a message object with the Fatal level.
FatalFormat (inherited from AbstractLogger)Overloaded. Log a message with the Fatal level.
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
Info (inherited from AbstractLogger)Overloaded. Log a message object with the Info level.
InfoFormat (inherited from AbstractLogger)Overloaded. Log a message with the Info level.
ToString (inherited from Object) 
Trace (inherited from AbstractLogger)Overloaded. Log a message object with the Trace level.
TraceFormat (inherited from AbstractLogger)Overloaded. Log a message with the Trace level.
Warn (inherited from AbstractLogger)Overloaded. Log a message object with the Warn level.
WarnFormat (inherited from AbstractLogger)Overloaded. Log a message with the Warn level.

Protected Instance Methods

Finalize (inherited from Object) 
FormatOutput Appends the formatted message to the specified StringBuilder.
GetWriteHandler (inherited from AbstractLogger) Override this method to use a different method than WriteInternal for writing log events to the underlying log system.
IsLevelEnabled Determines if the given log level is currently enabled.
MemberwiseClone (inherited from Object) 
WriteInternal (inherited from AbstractLogger) Actually sends the message to the underlying log system.

See Also

AbstractSimpleLogger Class | Common.Logging.Simple Namespace