C# Class BSky.Statistics.Common.Log

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

Logs debugging events.
public static DebugInfo ( string description ) : void
description string
Résultat void

DebugInfo() public static méthode

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

ErrorEvent() public static méthode

public static ErrorEvent ( string description ) : void
description string
Résultat void

ErrorEvent() public static méthode

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

InformationEvent() public static méthode

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

WarningEvent() public static méthode

Logs warning events.
public static WarningEvent ( string description ) : void
description string
Résultat void

WarningEvent() public static méthode

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