/// <summary> /// Initializes a new instance of the <see /// cref="LoggingEnsuranceHandler"/> class. /// </summary> /// <exception cref="ArgumentNullException">if logger is null</exception> /// <param name="logger">The logger.</param> /// <param name="logSeverity">The log severity.</param> public LoggingEnsuranceHandler( IEnsuranceLogger logger, LogSeverity logSeverity ) { if ( logger == null ) { throw new ArgumentNullException( "logger" ); } _logger = logger; _logger.DefaultLogSeverity = logSeverity; }
/// <summary> /// Initializes a new instance of the <see /// cref="LoggingEnsuranceHandler"/> class. /// </summary> /// <exception cref="ArgumentNullException">if logger is null</exception> /// <param name="logger">The logger.</param> /// <param name="logSeverity">The log severity.</param> public LoggingEnsuranceHandler(IEnsuranceLogger logger, LogSeverity logSeverity) { if (logger == null) { throw new ArgumentNullException("logger"); } _logger = logger; _logger.DefaultLogSeverity = logSeverity; }
/// <summary> /// Initializes a new instance of the <see /// cref="LoggingEnsuranceHandler"/> class. /// </summary> /// <param name="logger">The logger.</param> public LoggingEnsuranceHandler( IEnsuranceLogger logger ) : this( logger, LogSeverity.Error ) { }
/// <summary> /// Initializes a new instance of the <see /// cref="LoggingEnsuranceHandler"/> class. /// </summary> /// <param name="logger">The logger.</param> public LoggingEnsuranceHandler(IEnsuranceLogger logger) : this(logger, LogSeverity.Error) { }