/// <summary> /// Initializes a new instance of the <see cref="FilteredLogger"/> class. /// </summary> /// <param name="minLevel">The minimum level to log.</param> /// <param name="loggedType">Type being logged.</param> /// <param name="innerLogger">The inner logger (invoked if the filter requirements are fulfilled).</param> public FilteredLogger(LogLevel minLevel, Type loggedType, BaseLogger innerLogger) : base(loggedType) { if (innerLogger == null) throw new ArgumentNullException("innerLogger"); _minLevel = minLevel; _innerLogger = innerLogger; }
/// <summary> /// Initializes a new instance of the <see cref="FilteredLogger"/> class. /// </summary> /// <param name="type">Tyep that logs.</param> /// <param name="innerLogger">The inner logger (invoked if the filter requirements are fulfilled).</param> public FilteredLogger(Type type, BaseLogger innerLogger) : base(type) { if (innerLogger == null) throw new ArgumentNullException("innerLogger"); _innerLogger = innerLogger; }