コード例 #1
0
        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);
        }
コード例 #2
0
 public static bool GetLocalEcho(LoggerStream stream)
 {
     return(_streams[(int)stream].LocalEcho);
 }
コード例 #3
0
 public static void SetLocalEcho(LoggerStream stream, bool echo)
 {
     _streams[(int)stream].LocalEcho = echo;
 }
コード例 #4
0
 public LoggerStreamInfo(LoggerStream type)
 {
     Type      = type;
     LocalEcho = false;
     Enabled   = true;
 }