C# Class BSky.Statistics.Common.Log

A logging class for logging data to the Windows Event Log and a log file.
Datei anzeigen Open project: BlueSkyStatistics/BlueSkyRepository

Public Methods

Method Description
DebugInfo ( string description ) : void

Logs debugging events.

DebugInfo ( string description, Exception exception ) : void

Logs debugging events.

ErrorEvent ( string description ) : void
ErrorEvent ( string description, Exception exception ) : void

Logs warning events.

InformationEvent ( string format ) : void

Logs informational events to the logfile.

WarningEvent ( string description ) : void

Logs warning events.

WarningEvent ( string description, Exception exception ) : void

Logs warning events.

Private Methods

Method Description
ExceptionToString ( Exception exception ) : string
GetCallerName ( ) : string

Returns function name in call stack

TraceEnter ( ) : void
TraceExit ( ) : void
TraceExit ( object retval ) : void
WriteEvent ( TraceEventType eventType, int id, string format ) : void

Method Details

DebugInfo() public static method

Logs debugging events.
public static DebugInfo ( string description ) : void
description string
return void

DebugInfo() public static method

Logs debugging events.
public static DebugInfo ( string description, Exception exception ) : void
description string
exception System.Exception
return void

ErrorEvent() public static method

public static ErrorEvent ( string description ) : void
description string
return void

ErrorEvent() public static method

Logs warning events.
public static ErrorEvent ( string description, Exception exception ) : void
description string
exception System.Exception
return void

InformationEvent() public static method

Logs informational events to the logfile.
public static InformationEvent ( string format ) : void
format string
return void

WarningEvent() public static method

Logs warning events.
public static WarningEvent ( string description ) : void
description string
return void

WarningEvent() public static method

Logs warning events.
public static WarningEvent ( string description, Exception exception ) : void
description string
exception System.Exception
return void