public static void WriteInfo(string info, LoggerStream stream, params object[] args) { if (_streams[(int)stream].Enabled == false) { return; } if (_streams[(int)stream].LocalEcho) { Console.CurrentConsole.WriteLine(info, args); } _writer.WriteLine(DateTime.Now.ToLongTimeString() + ": " + info, args); }
public static bool GetLocalEcho(LoggerStream stream) { return(_streams[(int)stream].LocalEcho); }
public static void SetLocalEcho(LoggerStream stream, bool echo) { _streams[(int)stream].LocalEcho = echo; }
public LoggerStreamInfo(LoggerStream type) { Type = type; LocalEcho = false; Enabled = true; }