Пример #1
0
 void IConfigureLogging.Configure(IConfigureThisEndpoint specifier)
 {
     if (Log4NetConfigurator.Log4NetExists)
     {
         SetLoggingLibrary.Log4Net(null, Log4NetAppenderFactory.CreateColoredConsoleAppender("Info"));
     }
     else if (NLogConfigurator.NLogExists)
     {
         SetLoggingLibrary.NLog(null, NLogTargetFactory.CreateColoredConsoleTarget());
     }
     else
     {
         ConfigureInternalLog4Net.Integration();
     }
 }