示例#1
0
 private ExceptionFilter GetExceptionFilter(LoggingProperties logProps)
 {
     if (logProps.LogPayloadErrorCodes == null && logProps.LogPayloadExceptions == null && logProps.LogPayloadHttpStatusCodes == null)
         return null;
     else
         return new ExceptionFilter(logProps.LogPayloadErrorCodes, logProps.LogPayloadExceptions, logProps.LogPayloadHttpStatusCodes);
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static LoggingProperties GetLoggingProperties()
        {
            LoggingProperties outProps = new LoggingProperties();

            outProps.LogFileName               = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_FILE_NAME);
            outProps.LogPayloadErrorCodes      = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_ERROR_CODES);
            outProps.LogPayloadExceptions      = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_EXCEPTIONS);
            outProps.LogPayloadHttpStatusCodes = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_HTTP_STATUS_CODES);
            return(outProps);
        }
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		public static LoggingProperties GetLoggingProperties()
		{
			LoggingProperties outProps = new LoggingProperties();
            outProps.LogFileName = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_FILE_NAME);
            outProps.LogPayloadErrorCodes = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_ERROR_CODES);
            outProps.LogPayloadExceptions = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_EXCEPTIONS);
            outProps.LogPayloadHttpStatusCodes = System.Configuration.ConfigurationManager.AppSettings.Get(LOG_PAYLOAD_HTTP_STATUS_CODES);
			return outProps;
		}