public void testWarn() { var logger = new LoggerMaster(Level.Warn, "test"); logger.Action = new TestAction("test"); logger.Debug("a"); logger.Trace("a"); logger.Info("a"); logger.Warn("a"); logger.Error("a"); }
public void testWarnWithOneChildRestrictive() { var loggerM = new LoggerMaster(Level.Warn, "test"); loggerM.Action = new TestAction("test1"); var logger = loggerM.getInstance("test1"); logger.setLevel(Level.Debug.ToString()); logger.Debug("a"); logger.Trace("a"); logger.Info("a"); logger.Warn("a"); logger.Error("a"); }
public void testWarnWithTwoChild() { var loggerM = new LoggerMaster(Level.Info, "test"); loggerM.Action = new TestAction("test2"); var loggerMid = loggerM.getInstance("test1"); var logger = loggerM.getInstance("test1", "test2"); logger.setLevel(Level.Warn.ToString()); logger.Debug("a"); logger.Trace("a"); logger.Info("a"); logger.Warn("a"); logger.Error("a"); }