C# Class CK.Windows.App.CommonLogger

Configures the common logger (abstraction provided by the Common.Logging.LogManager).
Show file Open project: Invenietis/ck-certified

Public Methods

Method Description
Initialize ( string appLogDirectory, bool dumpToConsole ) : void

Initializes Common.Logging.LogManager with a Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter after having configured log4net to emit low levels logs.

Private Methods

Method Description
OnApplicationCrash ( object source, CK.Windows.App.ApplicationCrashedEventArgs e ) : void

This method is registered on CK.AppRecovery.ApplicationRecovery.ApplicationCrashed event.

Method Details

Initialize() public static method

Initializes Common.Logging.LogManager with a Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter after having configured log4net to emit low levels logs.
public static Initialize ( string appLogDirectory, bool dumpToConsole ) : void
appLogDirectory string The directory for low leveel logs.
dumpToConsole bool True to log all traces into the console.
return void