C# Class FiftyOne.EventLog

Utility class, contains implementation for logging support.
This class should not be called as it is part of the internal logic.
Inheritance: Log
Afficher le fichier Open project: 51Degrees/dotNET-Device-Detection

Private Properties

Свойство Type Description
GetProcessId int

Méthodes publiques

Méthode Description
Debug ( Exception ex ) : void

Records a debug exception in the log file if debug logging is enabled.

Debug ( string message ) : void

Records the message in the log file if debug logging is enabled.

Fatal ( Exception ex ) : void

Records a fatal exception in the log file if fatal logging is enabled.

Fatal ( string message ) : void

Records the message in the log file if fatal logging is enabled.

Info ( Exception ex ) : void

Records an info exception in the log file if info logging is enabled.

Info ( string message ) : void

Records the message in the log file if info logging is enabled.

Warn ( Exception ex ) : void

Records a warn exception in the log file if warn logging is enabled.

Warn ( string message ) : void

Records the message in the log file if warn logging is enabled.

Méthodes protégées

Méthode Description
Write ( string level, string message ) : void

Writes the level and message to the log file including the current time and process id.

Private Methods

Méthode Description
GetProcessId ( ) : int

Method Details

Debug() public static méthode

Records a debug exception in the log file if debug logging is enabled.
public static Debug ( Exception ex ) : void
ex System.Exception The exception to be recorded in the log file.
Résultat void

Debug() public static méthode

Records the message in the log file if debug logging is enabled.
public static Debug ( string message ) : void
message string The text message to record in the log file.
Résultat void

Fatal() public static méthode

Records a fatal exception in the log file if fatal logging is enabled.
public static Fatal ( Exception ex ) : void
ex System.Exception The exception to be recorded in the log file.
Résultat void

Fatal() public static méthode

Records the message in the log file if fatal logging is enabled.
public static Fatal ( string message ) : void
message string The text message to record in the log file.
Résultat void

Info() public static méthode

Records an info exception in the log file if info logging is enabled.
public static Info ( Exception ex ) : void
ex System.Exception The exception to be recorded in the log file.
Résultat void

Info() public static méthode

Records the message in the log file if info logging is enabled.
public static Info ( string message ) : void
message string The text message to record in the log file.
Résultat void

Warn() public static méthode

Records a warn exception in the log file if warn logging is enabled.
public static Warn ( Exception ex ) : void
ex System.Exception The exception to be recorded in the log file.
Résultat void

Warn() public static méthode

Records the message in the log file if warn logging is enabled.
public static Warn ( string message ) : void
message string The text message to record in the log file.
Résultat void

Write() protected static méthode

Writes the level and message to the log file including the current time and process id.
protected static Write ( string level, string message ) : void
level string The level of the message. Values include debug, info, warn and fatal.
message string The message string to be written.
Résultat void