コード例 #1
0
 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");
 }
コード例 #2
0
        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");
        }
コード例 #3
0
 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");
 }
コード例 #4
0
 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");
 }
コード例 #5
0
        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");
        }
コード例 #6
0
        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");
        }