public void TestInitialize()
        {
            this.synchronous = new WrappedTraceListener();
            this.asynchronous = new WrappedTraceListener();
            this.errorListener = new WrappedTraceListener();

            this.logWriter = new LogWriter(new LoggingConfiguration());
            this.logWriter.Configure(c =>
                {
                    var asynchronous = new AsynchronousTraceListenerWrapper(this.asynchronous);

                    c.AddLogSource("synchronous").AddTraceListener(this.synchronous);
                    c.AddLogSource("asynchronous").AddTraceListener(asynchronous);
                    var autoflush = c.AddLogSource("asynchronous-autoflush");
                    autoflush.AddTraceListener(asynchronous);
                    autoflush.AutoFlush = true;
                    var mixed = c.AddLogSource("mixed");
                    mixed.AddTraceListener(this.synchronous);
                    mixed.AddTraceListener(asynchronous);

                    c.SpecialSources.LoggingErrorsAndWarnings.Listeners.Add(this.errorListener);
                });
        }
        public void TestInitialize()
        {
            this.synchronous   = new WrappedTraceListener();
            this.asynchronous  = new WrappedTraceListener();
            this.errorListener = new WrappedTraceListener();

            this.logWriter = new LogWriter(new LoggingConfiguration());
            this.logWriter.Configure(c =>
            {
                var asynchronous = new AsynchronousTraceListenerWrapper(this.asynchronous);

                c.AddLogSource("synchronous").AddTraceListener(this.synchronous);
                c.AddLogSource("asynchronous").AddTraceListener(asynchronous);
                var autoflush = c.AddLogSource("asynchronous-autoflush");
                autoflush.AddTraceListener(asynchronous);
                autoflush.AutoFlush = true;
                var mixed           = c.AddLogSource("mixed");
                mixed.AddTraceListener(this.synchronous);
                mixed.AddTraceListener(asynchronous);

                c.SpecialSources.LoggingErrorsAndWarnings.Listeners.Add(this.errorListener);
            });
        }