Пример #1
0
 public static LoggingProperties GetLoggingProperties()
 {
     LoggingProperties outProps = new LoggingProperties();
     outProps.LogFileName = HartvilleToolConfigManager.GetSetting(LOG_FILE_NAME);
     outProps.LogPayloadErrorCodes = HartvilleToolConfigManager.GetSetting(LOG_PAYLOAD_ERROR_CODES);
     outProps.LogPayloadExceptions = HartvilleToolConfigManager.GetSetting(LOG_PAYLOAD_EXCEPTIONS);
     outProps.LogPayloadHttpStatusCodes = HartvilleToolConfigManager.GetSetting(LOG_PAYLOAD_HTTP_STATUS_CODES);
     return outProps;
 }
Пример #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;
 }