MTSC  1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
ConsoleLogger.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 
5 namespace MTSC.Logging
6 {
10  public class ConsoleLogger : ILogger
11  {
16  public bool Log(string message)
17  {
18  Console.WriteLine(message);
19  return false;
20  }
26  public bool LogDebug(string message)
27  {
28  return false;
29  }
30  }
31 }
bool Log(string message)
Outputs the message to the console.
Interface for loggers.
Definition: ILogger.cs:10
Basic logger that outputs the log messages to the console.
bool LogDebug(string message)
Ignores debug messages.