public static void AddingMultipleAppenders() { global::log4net.Tests.Appender.CountingAppender counting = new global::log4net.Tests.Appender.CountingAppender(); global::log4net.Appender.ConsoleAppender console = new global::log4net.Appender.ConsoleAppender(); global::log4net.Repository.Hierarchy.Hierarchy hierarchy = (global::log4net.Repository.Hierarchy.Hierarchy) global::log4net.LogManager.GetRepository(); hierarchy.Root.AddAppender(counting); hierarchy.Root.AddAppender(console); hierarchy.Configured = true; global::log4net.ILog log = global::log4net.LogManager.GetLogger(new LogSamples().GetType()); log.Debug("Debug message HolisticWare AddingMultipleAppenders()"); log.Info("Info message HolisticWare AddingMultipleAppenders()"); log.Warn("Warning message HolisticWare AddingMultipleAppenders()"); log.Error("Error message HolisticWare AddingMultipleAppenders()"); log.Fatal("Fatal message HolisticWare AddingMultipleAppenders()"); return; }
public static void AddingMultipleAppenders2() { global::log4net.Tests.Appender.CountingAppender counting = new global::log4net.Tests.Appender.CountingAppender(); global::log4net.Appender.ConsoleAppender console = new global::log4net.Appender.ConsoleAppender(); global::log4net.Config.BasicConfigurator.Configure(counting, console); global::log4net.ILog log = global::log4net.LogManager.GetLogger(new LogSamples().GetType()); log.Debug("Debug message HolisticWare AddingMultipleAppenders2()"); log.Info("Info message HolisticWare AddingMultipleAppenders2()"); log.Warn("Warning message HolisticWare AddingMultipleAppenders2()"); log.Error("Error message HolisticWare AddingMultipleAppenders2()"); log.Fatal("Fatal message HolisticWare AddingMultipleAppenders2()"); return; }
public static void AddingMultipleAppenders2() { global::log4net.Tests.Appender.CountingAppender counting = new global::log4net.Tests.Appender.CountingAppender(); global::log4net.Appender.ConsoleAppender console = new global::log4net.Appender.ConsoleAppender(); global::log4net.Config.BasicConfigurator.Configure(counting, console); global::log4net.ILog log = global::log4net.LogManager.GetLogger(new LogSamples().GetType()); log.Debug("Debug message HolisticWare AddingMultipleAppenders2()"); log.Info("Info message HolisticWare AddingMultipleAppenders2()"); log.Warn("Warning message HolisticWare AddingMultipleAppenders2()"); log.Error("Error message HolisticWare AddingMultipleAppenders2()"); log.Fatal("Fatal message HolisticWare AddingMultipleAppenders2()"); return; }
public static void AddingMultipleAppenders() { global::log4net.Tests.Appender.CountingAppender counting = new global::log4net.Tests.Appender.CountingAppender(); global::log4net.Appender.ConsoleAppender console = new global::log4net.Appender.ConsoleAppender(); global::log4net.Repository.Hierarchy.Hierarchy hierarchy = (global::log4net.Repository.Hierarchy.Hierarchy) global::log4net.LogManager.GetRepository(); hierarchy.Root.AddAppender(counting); hierarchy.Root.AddAppender(console); hierarchy.Configured = true; global::log4net.ILog log = global::log4net.LogManager.GetLogger(new LogSamples().GetType()); log.Debug("Debug message HolisticWare AddingMultipleAppenders()"); log.Info("Info message HolisticWare AddingMultipleAppenders()"); log.Warn("Warning message HolisticWare AddingMultipleAppenders()"); log.Error("Error message HolisticWare AddingMultipleAppenders()"); log.Fatal("Fatal message HolisticWare AddingMultipleAppenders()"); return; }