示例#1
0
        public void WriteToSpecial()
        {
            var myappender = new TestAppender {
                Level = LogLevel.Debug
            };

            Loggy.Get("named", s => {
                s.Isolated = true;
                s.Level    = LogLevel.Info;
                s.Appenders.Add(myappender);
            });
            Loggy.Get("named").Info("test");
            appender.MustNotCatch(LogLevel.Info, "test", "named");
            myappender.MustCatch(LogLevel.Info, "test", "named");
        }
示例#2
0
 public void WriteToDefault()
 {
     Loggy.Info("test");
     appender.MustCatch(LogLevel.Info, "test", "default");
 }