public void GlobalLogger__CanSetCustomLogger()
        {
            var logger = new DiagnosticLogger("My Custom Logger");

            DiagnosticLogger.SetGlobalLogger(logger);

            var logger2 = DiagnosticLogger.Global;

            Assert.AreEqual(logger, logger2);
        }
        public ILogger GetDefaultTestLogger()
        {
            MoqRepository = new Moq.MockRepository(Moq.MockBehavior.Default);
            SinkMock = MoqRepository.Create<Sink>();
            SinkMock.CallBase = true;

            var logger = new DiagnosticLogger();

            var config = logger.GetConfigurationClone();

            config.Sinks.Clear();

            config.Sinks.Add(SinkMock.Object);

            logger.ApplyConfiguration(config);

            return logger;
        }