Ejemplo n.º 1
0
 public ILogger Build()
 {
     _logStatementDispatcher = new AsyncLogStatementDispatcher(_sinks, _logStatementRenderer);
     return(new Logger(_logStatementDispatcher, _logStatementEnrichers));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a new <see cref="Logger"/>
 /// </summary>
 /// <param name="logStatementDispatcher">The log statement dispatcher <see cref="ILogStatementDispatcher"/></param>
 private Logger(ILogStatementDispatcher logStatementDispatcher, IList <ILogStatementEnricher> logStatementEnrichers = null)
 {
     _logStatementDispatcher = logStatementDispatcher;
     _logStatementEnrichers  = logStatementEnrichers;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs a new <see cref="Logger"/>
 /// </summary>
 /// <param name="logStatementDispatcher">The log statement dispatcher <see cref="ILogStatementDispatcher"/></param>
 public Logger(ILogStatementDispatcher logStatementDispatcher)
 {
     _logStatementDispatcher = logStatementDispatcher;
 }