/// <summary> /// Configure a target that log entries can be written to /// </summary> /// <param name="name">Name of the target. Must be the same as used by <see cref="LogNamespace"/></param> /// <returns>Current configuration instance (to be able to configure fluently)</returns> public FluentTargetConfiguration AddTarget(string name) { var target = new FluentTargetConfiguration(this, name); _targets.Add(target); return(target); }
/// <summary> /// Initializes a new instance of the <see cref="FluentFilterConfiguration"/> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="logTarget">The log target.</param> public FluentFilterConfiguration(FluentTargetConfiguration configuration, ILogTarget logTarget) { _configuration = configuration; _logTarget = logTarget; }
/// <summary> /// Initializes a new instance of the <see cref="FluentTargetConfigurationTypes"/> class. /// </summary> /// <param name="configuration">The configuration.</param> public FluentTargetConfigurationTypes(FluentTargetConfiguration configuration) { _configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="FluentTargetConfigurationTypes"/> class. /// </summary> /// <param name="configuration">The configuration.</param> public FluentTargetConfigurationTypes(FluentTargetConfiguration configuration) { Contract.Requires<ArgumentNullException>(configuration != null); _configuration = configuration; }
/// <summary> /// Configure a target that log entries can be written to /// </summary> /// <param name="name">Name of the target. Must be the same as used by <see cref="LogNamespace"/></param> /// <returns>Current configuration instance (to be able to configure fluently)</returns> public FluentTargetConfiguration AddTarget(string name) { var target = new FluentTargetConfiguration(this, name); _targets.Add(target); return target; }