Design Pattern Framework 3.5
Log Method (sender, e)
Patterns-In-Action! Application ► Log ► ObserverLogToDatabase ► Log(Object, LogEventArgs)
Writes a log request to the database.
Declaration Syntax
C# | Visual Basic |
public void Log( Object sender, LogEventArgs e )
Public Sub Log ( _ sender As Object, _ e As LogEventArgs _ )
Parameters
- sender (Object)
- Sender of the log request.
- e (LogEventArgs)
- Parameters of the log request.
Remarks
Actual database insert statements are commented out.
You can activate this if you have the proper database
configuration and access privileges.