Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConsoleTarget"/> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public ConsoleTarget(ConsoleConfiguration configuration)
        {
            if (configuration == null) throw new ArgumentNullException("configuration");


            _configuration = configuration;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConsoleTarget"/> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public ConsoleTarget(ConsoleConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }


            _configuration = configuration;
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleTarget"/> class.
 /// </summary>
 public ConsoleTarget()
 {
     _configuration = new ConsoleConfiguration();
 }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConsoleTarget"/> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public ConsoleTarget(ConsoleConfiguration configuration)
        {
            Contract.Requires<ArgumentNullException>(configuration != null);

            _configuration = configuration;
        }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleTarget"/> class.
 /// </summary>
 public ConsoleTarget()
 {
     _configuration = new ConsoleConfiguration();
 }
        /// <summary>
        /// Add a console window logger using custom settings
        /// </summary>
        /// <param name="config">custom configuration settings</param>
        /// <returns>Target configuration</returns>
        public FluentTargetConfiguration ConsoleLogger(ConsoleConfiguration config)
        {
            Add(new ConsoleTarget(config));

            return _configuration;
        }
        /// <summary>
        /// Add a console window logger using custom settings
        /// </summary>
        /// <param name="config">custom configuration settings</param>
        /// <returns>Target configuration</returns>
        public FluentTargetConfiguration ConsoleLogger(ConsoleConfiguration config)
        {
            Contract.Requires<ArgumentNullException>(config != null);

            Add(new ConsoleTarget(config));

            return _configuration;
        }