Пример #1
0
        private static ExceptionLoggingInfo GetConfigValues()
        {
            ExceptionLoggingInfo exceptionLoggingInfo = new ExceptionLoggingInfo();

            exceptionLoggingInfo.IsLoggingEnabled = (bool)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_KEY, typeof(bool), exceptionLoggingInfo.IsLoggingEnabled);
            exceptionLoggingInfo.CriticalityLevel = (string)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_CRITICALITYLEVEL_KEY, typeof(string), exceptionLoggingInfo.CriticalityLevel);
            exceptionLoggingInfo.FileSizeInMB     = (float)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_FILESIZE_KEY, typeof(float), exceptionLoggingInfo.FileSizeInMB);
            exceptionLoggingInfo.LogSink          = (string)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_LOGSINK_KEY, typeof(string), exceptionLoggingInfo.LogSink);
            return(exceptionLoggingInfo);
        }
Пример #2
0
        public static void UpdateExceptionLogginInfo()
        {
            m_ExceptionLoggingInfo = GetConfigValues();

            //Fixed for DEBUG
            m_ExceptionLoggingInfo.IsLoggingEnabled = true;
            m_ExceptionLoggingInfo.LogSink          = "EVENTLOG";

            InitialiseExceptionHandlerStreams();
        }
Пример #3
0
 static ExceptionHandler()
 {
     m_ExceptionLoggingInfo = GetConfigValues();
 }
Пример #4
0
 public static void UpdateExceptionLogginInfo()
 {
     m_ExceptionLoggingInfo = GetConfigValues();
     InitialiseExceptionHandlerStreams();
 }
Пример #5
0
 static ExceptionHandler()
 {
     m_ExceptionLoggingInfo = GetConfigValues();
 }
Пример #6
0
 private static ExceptionLoggingInfo GetConfigValues()
 {
     ExceptionLoggingInfo exceptionLoggingInfo = new ExceptionLoggingInfo();
     exceptionLoggingInfo.IsLoggingEnabled = (bool)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_KEY, typeof(bool), exceptionLoggingInfo.IsLoggingEnabled);
     exceptionLoggingInfo.CriticalityLevel = (string)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_CRITICALITYLEVEL_KEY, typeof(string), exceptionLoggingInfo.CriticalityLevel);
     exceptionLoggingInfo.FileSizeInMB = (float)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_FILESIZE_KEY, typeof(float), exceptionLoggingInfo.FileSizeInMB);
     exceptionLoggingInfo.LogSink = (string)AppConfigHelper.GetValueFromConfig(LoggingConstants.CONS_EXCEPTIONLOGGING_LOGSINK_KEY, typeof(string), exceptionLoggingInfo.LogSink);
     return exceptionLoggingInfo;
 }
Пример #7
0
 public static void UpdateExceptionLogginInfo()
 {
     m_ExceptionLoggingInfo = GetConfigValues();
     InitialiseExceptionHandlerStreams();
 }