/// <summary> /// Instantiates an instance of <see cref="JsonLogAppender"/> /// </summary> /// <param name="getCurrentLoggingContext"></param> public JsonLogAppender(GetCurrentLoggingContext getCurrentLoggingContext) { _getCurrentLoggingContext = getCurrentLoggingContext; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultLogAppendersConfigurator"/> class. /// </summary> /// <param name="loggerFactory"><see cref="ILoggerFactory"/> to use.</param> /// <param name="getCurrentLoggingContext">A <see cref="GetCurrentLoggingContext"/> for getting current logging context.</param> /// <param name="environment">Current environment running (production, development).</param> public DefaultLogAppendersConfigurator(ILoggerFactory loggerFactory, GetCurrentLoggingContext getCurrentLoggingContext, string environment) { _loggerFactory = loggerFactory; _getCurrentLoggingContext = getCurrentLoggingContext; _environment = environment; }
/// <summary> /// Initializes a new instance of <see cref="DefaultLogAppender"/> /// </summary> /// <param name="getCurrentLoggingContext"></param> /// <param name="loggerFactory"><see cref="ILoggerFactory"/> to use</param> public DefaultLogAppender(GetCurrentLoggingContext getCurrentLoggingContext, ILoggerFactory loggerFactory) { _getCurrentLoggingContext = getCurrentLoggingContext; _loggerFactory = loggerFactory; }