Aqueduct.Diagnostics.AppLogger.InitialiseFromConfig C# (CSharp) Method

InitialiseFromConfig() public static method

Initialises AppLogger using the Aqueduct.Config file.
Uses the contents of the Diagnostics.Config setting to Initialise the logger To enable the intrelnal log debugging set Diagnostics.InternalDebugMode setting to true
public static InitialiseFromConfig ( string loggerName ) : void
loggerName string
return void
        public static void InitialiseFromConfig(string loggerName)
        {
            Log4NetInitialiser.InitialiseUsingConfig();
            Config.SettingsChanged += (sender, args) => { Log4NetInitialiser.InitialiseUsingConfig(); };

            if (string.IsNullOrEmpty(loggerName))
                throw new ArgumentException("Logger name not specified.", "loggerName");

            m_globalLogger = new Logger(loggerName);
        }