Exemplo n.º 1
0
 internal static Logger Log(string source, LoggerProvider writers, LoggerEnvironment environment)
 {
     return(new Logger(source, writers, environment));
 }
Exemplo n.º 2
0
 internal Logger(string source, LoggerProvider provider, LoggerEnvironment environment)
 {
     _source      = source;
     _provider    = provider;
     _environment = environment;
 }
Exemplo n.º 3
0
 public static ILoggerFactory CreateFactory(LoggerProvider provider)
 {
     return(new LoggerFactory(provider));
 }
Exemplo n.º 4
0
 public ILogger CreateLogger(string source = null, LoggerProvider provider = null)
 {
     return(AddLogger(source.ValueOrDefault(_environment.AppName), provider ?? _defaultProvider));
 }
Exemplo n.º 5
0
 public LoggerFactory(LoggerProvider provider)
 {
     _defaultProvider = provider;
 }