private Log()
 {
     try
     {
         switch (ConfigurationManager.AppSettings["AppLogLevel"].NulltoString("DEBUG"))
         {
             case "DEBUG":
                 bLog = new DebugLog();
                 break;
             case "INFO":
                 bLog = new InfoLog();
                 break;
             case "WARNING":
                 bLog = new WarningLog();
                 break;
             case "ERROR":
                 bLog = new ErrorLog();
                 break;
             default:
                 bLog = new DebugLog();
                 break;
         }
     }
     catch
     {
     }
 }
        private Log()
        {
            try
            {
                switch (ConfigurationManager.AppSettings["AppLogLevel"].NulltoString("DEBUG"))
                {
                case "DEBUG":
                    bLog = new DebugLog();
                    break;

                case "INFO":
                    bLog = new InfoLog();
                    break;

                case "WARNING":
                    bLog = new WarningLog();
                    break;

                case "ERROR":
                    bLog = new ErrorLog();
                    break;

                default:
                    bLog = new DebugLog();
                    break;
                }
            }
            catch
            {
            }
        }
        public void RefreshApp()
        {
            try
            {
                switch (ConfigurationManager.AppSettings["LogMode"].NulltoString("DEBUG"))
                {
                case "DEBUG":
                    bLog = new DebugLog();
                    break;

                case "INFO":
                    bLog = new InfoLog();
                    break;

                case "WARNING":
                    bLog = new WarningLog();
                    break;

                case "ERROR":
                    bLog = new ErrorLog();
                    break;

                default:
                    bLog = new DebugLog();
                    break;
                }
            }
            catch
            {
            }
        }
 public void RefreshApp()
 {
     try
     {
         switch (ConfigurationManager.AppSettings["LogMode"].NulltoString("DEBUG"))
         {
             case "DEBUG":
                 bLog = new DebugLog();
                 break;
             case "INFO":
                 bLog = new InfoLog();
                 break;
             case "WARNING":
                 bLog = new WarningLog();
                 break;
             case "ERROR":
                 bLog = new ErrorLog();
                 break;
             default:
                 bLog = new DebugLog();
                 break;
         }
     }
     catch
     {
     }
 }