Пример #1
0
 private static void ConfigureLogging()
 {
     if (!AppConfigurationSettings.IsProductionEnvironment)
     {
         LoggingConfigurator.AddAppenderBuilder <ConsoleAppenderBuilder>();
     }
     LoggingConfigurator.AddAppenderBuilder <FileAppenderBuilder>();
     //LoggingConfigurator.AddAppenderBuilder<AdoNetAppenderBuilder>();
     LoggingConfigurator.Configure();
 }
Пример #2
0
 private static void ConfigureLogging()
 {
     LoggingConfigurator.AddAppenderBuilder <FileAppenderBuilder>();
     LoggingConfigurator.Configure();
 }