Пример #1
0
 public static ILoggerFactory AddCloudFoundry(
     this ILoggerFactory factory,
     ICloudFoundryLoggerSettings settings)
 {
     //factory.AddProvider(new CloudFoundryLoggerProvider(settings));
     factory.AddProvider(CloudFoundryLoggerProvider.CreateSingleton(settings));
     return(factory);
 }
Пример #2
0
 public static ILoggerFactory AddCloudFoundry(
     this ILoggerFactory factory,
     Func <string, LogLevel, bool> filter,
     bool includeScopes)
 {
     // factory.AddProvider(new CloudFoundryLoggerProvider(filter, includeScopes));
     factory.AddProvider(CloudFoundryLoggerProvider.CreateSingleton(filter, includeScopes));
     return(factory);
 }