예제 #1
0
        public override void Activate()
        {
            LogInternal.Debug(declaringType, "Debug - Activating options...");
            LogInternal.Warn(declaringType, "Warn - Activating options...");
            LogInternal.Error(declaringType, "Error - Activating options...");

            base.Activate();
        }
예제 #2
0
        public void LogReceivedAdapter()
        {
            var messages = new List <LogInternal>();

            using (new LogInternal.LogReceivedAdapter(messages)) {
                LogInternal.Debug(GetType(), "Won't be recorded");
                LogInternal.Error(GetType(), "This will be recorded.");
                LogInternal.Error(GetType(), "This will be recorded.");
            }

            Assert.AreEqual(2, messages.Count);
        }
예제 #3
0
 protected override void append(IRender render, object loggingEvent)
 {
     LogInternal.Debug(declaringType, "Debug - Appending...");
     LogInternal.Warn(declaringType, "Warn - Appending...");
     LogInternal.Error(declaringType, "Error - Appending...");
 }