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); }
public static void SignalRWarn(LogTag tag, HubCallerContext context) { SignalRAction(SignalRServerLog.Warn, "SignalRWarn(LogTag tag, HubCallerContext context)", tag.ToString(), context); }
public static void Error(LogTag tag, HttpRequestMessage request, Exception exception, bool includeBody = false) { Error(tag.ToString(), request, exception, includeBody); }
public LogTagModel(LogTag tag) { Id = (int)tag; Name = tag.ToString(); }
/// <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); }