Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 /// <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 )
 {
 }
Ejemplo n.º 4
0
 /// <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)
 {
 }