Detailed configuration file of log4net

Time:2021-2-22
XmlConfigurator.Configure(new FileInfo(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Config\log4Net.config")));

            ILog m_log = LogManager.GetLogger(typeof(Program));

            m_ log.Debug ("this is a debug log");
            m_ log.Info ("this is an info log");
            m_ log.Warn ("this is a warn log");
            m_ log.Error ("this is an error log");
            m_ log.Fatal ("this is a fatal log");

            Console.WriteLine("ok");
            Console.ReadLine();