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
Exibir arquivo Open project: 51Degrees/dotNET-Device-Detection

Private Properties

Property Type Description
GetProcessId int

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
GetProcessId ( ) : int

Method Details

Debug() public static method

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.
return void

Debug() public static method

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.
return void

Fatal() public static method

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.
return void

Fatal() public static method

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.
return void

Info() public static method

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.
return void

Info() public static method

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.
return void

Warn() public static method

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.
return void

Warn() public static method

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.
return void

Write() protected static method

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.
return void