Beispiel #1
0
 public static ILoggerProvider GetLoggerProvider(string providerName)
 {
     if (string.IsNullOrEmpty(providerName))
     {
         throw new ArgumentNullException("Error!");
     }
     return(LoggerProviderFactory.CreateLoggerProvider(providerName));
 }
Beispiel #2
0
 private Logger()
 {
     this._currentProvider = LoggerProviderFactory.GetLoggerProvider();
 }
Beispiel #3
0
 private Logger(string providerName)
 {
     this._currentProvider = LoggerProviderFactory.GetLoggerProvider(providerName);
 }
Beispiel #4
0
 public static ILoggerProvider GetLoggerProvider()
 {
     return(LoggerProviderFactory.GetLoggerProvider(LoggerProviderFactory._configSection.DefaultProviderName));
 }