SingletonLogger Class

Design Pattern Framework 3.5

Design Pattern Framework 3.5 SingletonLogger Class
Patterns-In-Action! ApplicationLogSingletonLogger
Singleton logger class through which all log events are processed.
Declaration Syntax
C# Visual Basic
public sealed class SingletonLogger
Public NotInheritable Class SingletonLogger
Members
All Members Methods Properties Events



Icon Member Description
Attach(ILog)
Attach a listening observer logging device to logger.

Debug(String)
Log a message when severity level is "Debug" or higher.

Debug(String, Exception)
Log a message when severity level is "Debug" or higher.

Detach(ILog)
Detach a listening observer logging device from logger.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error(String)
Log a message when severity level is "Error" or higher.

Error(String, Exception)
Log a message when severity level is "Error" or higher.

Fatal(String)
Log a message when severity level is "Fatal"

Fatal(String, Exception)
Log a message when severity level is "Fatal"

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Info(String)
Log a message when severity level is "Info" or higher.

Info(String, Exception)
Log a message when severity level is "Info" or higher.

Instance
Gets the instance of the singleton logger object.

Log
The Log event.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnLog(LogEventArgs)
Invoke the Log event.

Severity
Gets and sets the severity level of logging activity.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Warning(String)
Log a message when severity level is "Warning" or higher.

Warning(String, Exception)
Log a message when severity level is "Warning" or higher.

Remarks
GoF Design Patterns: Singleton, Observer.
Inheritance Hierarchy
Object
SingletonLogger

Assembly: Log (Module: Log) Version: 1.0.0.0 (1.0.0.0)