/// <inheritdoc/> public void Configure(ILogAppenders appenders) { if (_environment == "Production") { appenders.Add(new Json.JsonLogAppender(_getCurrentLoggingContext)); } else { appenders.Add(new DefaultLogAppender(_getCurrentLoggingContext, _loggerFactory)); } }
/// <inheritdoc/> public void Configure(ILogAppenders appenders) { #if (NET461) var defaultLogAppender = new DefaultLogAppender(); #else var defaultLogAppender = new DefaultLogAppender(_loggerFactory); #endif appenders.Add(defaultLogAppender); }