Beispiel #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);
        }
Beispiel #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);
        }
 public EventLoggerTest()
 {
     Log     = new EventLogger();
     Fixture = new LoggerFixture(Log);
 }
Beispiel #4
0
 public NullLoggerTest()
 {
     Log     = new NullLogger();
     Fixture = new LoggerFixture(Log);
 }
Beispiel #5
0
 public DiagnosticsLoggerTest()
 {
     Log     = new DiagnosticsLogger();
     Fixture = new LoggerFixture(Log);
 }
 public ConsoleLoggerTest()
 {
     Log     = new ConsoleLogger();
     Fixture = new LoggerFixture(Log);
 }