Beispiel #1
0
        private ILog BuildLog(IConfigurationRoot configurationRoot)
        {
            var  logFactory = new JsonLogFactory(configurationRoot);
            ILog log        = logFactory.GetLog();

            return(log);
        }
Beispiel #2
0
        public void Can_ReadLog4NetConfig()
        {
            var logFactory = new JsonLogFactory();
            var log        = logFactory.GetLog();

            Assert.Equal("Blog.Logger.Tests Logger", log.Logger.Name);
            Assert.Equal("Blog.Logger.Tests Repository", log.Logger.Repository.Name);

            log.Logger.Repository.Shutdown();
        }