Esempio n. 1
0
 public void SetLog(LogTag tag, String content, Level level)
 {
     Dispatcher.BeginInvoke((Action) delegate()
     {
         tbMain.Text += tag.ToString() + "---" + content + Environment.NewLine;
         UpdateValue();
     });
 }
        public void Log(LogTag tag, string message)
        {
            string log = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + "[" + tag.ToString() + "] - " + message;

            Console.WriteLine(log);
        }
Esempio n. 3
0
 public static void SignalRWarn(LogTag tag, HubCallerContext context)
 {
     SignalRAction(SignalRServerLog.Warn, "SignalRWarn(LogTag tag, HubCallerContext context)", tag.ToString(), context);
 }
Esempio n. 4
0
 public static void Error(LogTag tag, HttpRequestMessage request, Exception exception, bool includeBody = false)
 {
     Error(tag.ToString(), request, exception, includeBody);
 }
Esempio n. 5
0
 public LogTagModel(LogTag tag)
 {
     Id   = (int)tag;
     Name = tag.ToString();
 }
Esempio n. 6
0
 /// <summary>
 /// 写日志的唯一入口
 /// </summary>
 /// <param name="logLevel">日志级别</param>
 ///<param name="tag">日志类型 比如 NetSys ,UIMgr</param>
 /// <param name="strMessage">日志数据</param>
 /// <param name="flushIme">日志是否立即刷新,用于排查Crash出现的情况</param>
 ///
 public void Log(LogLevel logLevel, LogTag tag, string strMessage, bool flushIme = false)
 {
     Log(logLevel, tag.ToString(), strMessage, flushIme);
 }