Design Pattern Framework 3.5
SingletonLogger..::.LogEventHandler Delegate
Patterns-In-Action! Application ► Log ► SingletonLogger ► SingletonLogger..::.LogEventHandler
Delegate event handler that hooks up requests.
Declaration Syntax
C# | Visual Basic |
public delegate void LogEventHandler( Object sender, LogEventArgs e )
Public Delegate Sub LogEventHandler ( _ sender As Object, _ e As LogEventArgs _ )
Parameters
- sender (Object)
- Sender of the event.
- e (LogEventArgs)
- Event arguments.
Remarks
GoF Design Pattern: Observer, Singleton.
The Observer Design Pattern allows Observer classes to attach itself to
this Logger class and be notified if certain events occur.
The Singleton Design Pattern allows the application to have just one
place that is aware of the application-wide LogSeverity setting.