Exemplo n.º 1
0
        public void TestLoggingOverride()
        {
            var logging = new LogService();

            logging.ConfigureLogging <TestConfigBuilder>();

            var logger = LogManager.GetCurrentClassLogger();

            logger.Debug("test");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var service = new LogService();

            service.ConfigureLogging();
            // service.EnableDebugging();

            var logger = LogManager.GetCurrentClassLogger();

            logger.Debug("Debug message!");
            logger.Info("Info!");
            logger.Error("Something was an error");

            Console.WriteLine($"Logged to: {service.LogFolder}");
        }