private static LogManagerConfiguration GetConfig()
        {
            LogManagerConfiguration config = LogManagerConfiguration.config;

            if (config == null)
            {
                throw new ConfigurationErrorsException("You must supply a 'LogManager' configuration section in the web config.");
            }
            else
            {
                return(config);
            }
        }
        //***************************************************************************
        // Private Methods
        //
        private static void Initialize()
        {
            _config = GetConfig();

            if (_config.WriteToTextLog)
            {
                string lcPath = _config.LogFilePath;
                if (!System.IO.Path.IsPathRooted(lcPath))
                {
                    throw new ConfigurationErrorsException("Please specify the full drive path for the log files to be written to.");
                }

                Logger.Instance.LogFilesDirectory = _config.LogFilePath;
                Logger.Instance.LogFilesExtension = _config.LogFileExtension;
                Logger.Instance.MaxFileSize       = _config.MaxFileSize;
                Logger.Instance.RollOverOnNewDate = _config.RollOverOnNewDate;
            }
            else if (_config.WriteToSystemLog)
            {
                _eventLog = new System.Diagnostics.EventLog(_config.SystemLogName);
            }
        }
        //***************************************************************************
        // Private Methods
        // 
        private static void Initialize()
        {
            _config = GetConfig();

            if (_config.WriteToTextLog)
            {
                string lcPath = _config.LogFilePath;
                if (!System.IO.Path.IsPathRooted(lcPath))
                    throw new ConfigurationErrorsException("Please specify the full drive path for the log files to be written to.");

                Logger.Instance.LogFilesDirectory = _config.LogFilePath;
                Logger.Instance.LogFilesExtension = _config.LogFileExtension;
                Logger.Instance.MaxFileSize = _config.MaxFileSize;
                Logger.Instance.RollOverOnNewDate = _config.RollOverOnNewDate;
            }
            else if (_config.WriteToSystemLog)
            {
                _eventLog = new System.Diagnostics.EventLog(_config.SystemLogName);
            }
        }