/// <summary> /// 调试 /// </summary> /// <param name="msg">消息</param> /// <param name="ex">异常</param> /// <param name="source">来源</param> /// <param name="tags">标签</param> public void Debug(string msg, Exception ex = null, string source = null, params string[] tags) { HandleMsgAndSource(ref msg, ref source); ProtoLog.Debug(msg, ex, source, tags); }
/// <summary> /// 跟踪 /// </summary> /// <param name="msg">消息</param> /// <param name="ex">异常</param> /// <param name="source">来源</param> /// <param name="eventId">事件ID</param> /// <param name="tags">标签</param> public void Trace(string msg, Exception ex = null, string source = null, string eventId = null, params string[] tags) { HandleMsgAndSource(ref msg, ref source); ProtoLog.Trace(msg, ex, source, eventId, tags); }
/// <summary> /// 异步致命 /// </summary> /// <param name="msg">消息</param> /// <param name="ex">异常</param> /// <param name="source">来源</param> /// <param name="tags">标签</param> /// <returns>任务</returns> public Task FatalAsync(string msg, Exception ex = null, string source = null, params string[] tags) { HandleMsgAndSource(ref msg, ref source); return(ProtoLog.FatalAsync(msg, ex, source, tags)); }
/// <summary> /// 异步错误 /// </summary> /// <param name="msg">消息</param> /// <param name="ex">异常</param> /// <param name="source">来源</param> /// <param name="eventId">事件ID</param> /// <param name="tags">标签</param> /// <returns>任务</returns> public Task ErrorAsync(string msg, Exception ex = null, string source = null, string eventId = null, params string[] tags) { HandleMsgAndSource(ref msg, ref source); return(ProtoLog.ErrorAsync(msg, ex, source, eventId, tags)); }