Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompositeLoggerTest"/> class.
        /// </summary>
        public CompositeLoggerTest()
        {
            Log = new CompositeLogger();

            var refs = References.FromTuples(
                DefaultLoggerFactory.ConsoleLoggerDescriptor, new ConsoleLogger(),
                DefaultLoggerFactory.DiagnosticsLoggerDescriptor, new DiagnosticsLogger(),
                DefaultLoggerFactory.CompositeLoggerDescriptor, Log
                );

            Log.SetReferences(refs);

            Fixture = new LoggerFixture(Log);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompositeLoggerTest"/> class.
        /// </summary>
        public CompositeLoggerTest()
        {
            Log = new CompositeLogger();

            var refs = References.FromTuples(
                new Descriptor("pip-services", "logger", "null", "default", "1.0"), new NullLogger(),
                new Descriptor("pip-services", "logger", "console", "default", "1.0"), new ConsoleLogger(),
                DefaultLoggerFactory.DiagnosticsLoggerDescriptor, new DiagnosticsLogger()
                );

            Log.SetReferences(refs);

            Fixture = new LoggerFixture(Log);
        }