From fd085848e60831a8582c24de8f30ad4528f9d490 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 26 Mar 2011 03:45:34 +0100 Subject: unfinished console interface to NW4RTools added --- NW4RTools/Logger.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'NW4RTools/Logger.cs') diff --git a/NW4RTools/Logger.cs b/NW4RTools/Logger.cs index a6fbb70..9f7d063 100644 --- a/NW4RTools/Logger.cs +++ b/NW4RTools/Logger.cs @@ -24,6 +24,26 @@ namespace NW4RTools { void Unblock(); } + public class NullLogger : ILogger { + public NullLogger() { } + + public void Send(string format, params object[] args) { + } + + public LogContext Push(string format, params object[] args) { + return new LogContext(this); + } + + public void Pop() { + } + + public void Block() { + } + + public void Unblock() { + } + } + public class ConsoleLogger : ILogger { private List PrefixElements; private List Names; -- cgit v1.2.3