コード例 #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();
 }