Пример #1
0
        static async Task Main(string[] args)
        {
            ILoggerRepository repository = log4net.LogManager.GetRepository(Assembly.GetCallingAssembly());
            var fileInfo = new FileInfo(@"log4net.config");

            log4net.Config.XmlConfigurator.Configure(repository, fileInfo);

            var checker = new ConnectionChecker(new DumbStatusNotifier());
            await checker.Run();
        }