C# Class OnlineVideos.Log

This static class simply delegates Log calls to the OnlineVideoSettings.Logger. If no logger is set - no exception is generated - the messages are simply ignored. The logging class lives in the main applications AppDomain, so make sure the objects passed as args are marked with the SerializableAttribute or inherit from MarshalByRefObject.
Show file Open project: offbyoneBB/mp-onlinevideos2

Public Methods

Method Description
Debug ( string format ) : void

Appends a message to the logfile when the current verbosity is set to Debug or lower.

Error ( Exception ex ) : void

Overload to simply append the output of Exception.ToString to the logfile when the current verbosity is set to Error or lower.

Error ( string format ) : void

Appends a message to the logfile when the current verbosity is set to Error or lower.

Info ( string format ) : void

Appends a message to the logfile when the current verbosity is set to Information or lower.

Warn ( string format ) : void

Appends a message to the logfile when the current verbosity is set to Warning or lower.

Method Details

Debug() public static method

Appends a message to the logfile when the current verbosity is set to Debug or lower.
public static Debug ( string format ) : void
format string The messe to log. Can be a formatstring referencing the like: {0},{1:g},...
return void

Error() public static method

Overload to simply append the output of Exception.ToString to the logfile when the current verbosity is set to Error or lower.
public static Error ( Exception ex ) : void
ex System.Exception The to log.
return void

Error() public static method

Appends a message to the logfile when the current verbosity is set to Error or lower.
public static Error ( string format ) : void
format string The messe to log. Can be a formatstring referencing the like: {0},{1:g},...
return void

Info() public static method

Appends a message to the logfile when the current verbosity is set to Information or lower.
public static Info ( string format ) : void
format string The messe to log. Can be a formatstring referencing the like: {0},{1:g},...
return void

Warn() public static method

Appends a message to the logfile when the current verbosity is set to Warning or lower.
public static Warn ( string format ) : void
format string The messe to log. Can be a formatstring referencing the like: {0},{1:g},...
return void