protected LoggerDestinationBase( [NotNull] ITextLogFormatter textLogFormatter, [NotNull] IConfiguration configuration, [NotNull] string identifier) { if (identifier == null) { throw new ArgumentNullException(nameof(identifier)); } _TextLogFormatter = textLogFormatter ?? throw new ArgumentNullException(nameof(textLogFormatter)); _Options = configuration[$"Logging/Destinations/{identifier}"] .Element <TOptions>() .WithDefault(() => new TOptions()); }
public ConsoleLogDestination([NotNull] ITextLogFormatter textLogFormatter, [NotNull] IApplicationOptions options) { _TextLogFormatter = textLogFormatter ?? throw new ArgumentNullException(nameof(textLogFormatter)); _Options = options ?? throw new ArgumentNullException(nameof(options)); }
public DebugLogDestination([NotNull] ITextLogFormatter textLogFormatter) { _TextLogFormatter = textLogFormatter ?? throw new ArgumentNullException(nameof(textLogFormatter)); }
public DebugOutputLoggerDestination( [NotNull] ITextLogFormatter textLogFormatter, [NotNull] IConfiguration configuration) : base(textLogFormatter, configuration, "Debug") { }
public ConsoleLoggerDestination( [NotNull] ITextLogFormatter textLogFormatter, [NotNull] IConfiguration configuration) : base(textLogFormatter, configuration, "Console") { }