예제 #1
0
 /// <summary>
 /// 添加行
 /// </summary>
 protected void Append(StringBuilder result, LogContent content, Action <StringBuilder, LogContent> action, ref int line)
 {
     result.AppendFormat("{0}. ", line++);
     action(result, content);
 }
예제 #2
0
 /// <summary>
 /// 致命错误
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Fatal(string message)
 {
     LogContent.Content(message);
     Fatal();
 }
예제 #3
0
 /// <summary>
 /// 添加行
 /// </summary>
 protected void AppendLine(StringBuilder result, LogContent content, Action <StringBuilder, LogContent> action, ref int line)
 {
     Append(result, content, action, ref line);
     result.AppendLine();
 }
예제 #4
0
 /// <summary>
 /// 警告
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Warn(string message)
 {
     LogContent.Content(message);
     Warn();
 }
예제 #5
0
 /// <summary>
 /// 错误
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Error(string message)
 {
     LogContent.Content(message);
     Error();
 }
예제 #6
0
 /// <summary>
 /// 调试
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Debug(string message)
 {
     LogContent.Content(message);
     Debug();
 }
예제 #7
0
 /// <summary>
 /// 信息
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Info(string message)
 {
     LogContent.Content(message);
     Info();
 }
예제 #8
0
 public void Write(LogContent logDoc)
 {
     _localLogQueue.Enqueue(logDoc);
 }
예제 #9
0
 /// <summary>
 /// 跟踪
 /// </summary>
 /// <param name="message">日志消息</param>
 public virtual void Trace(string message)
 {
     LogContent.Content(message);
     Trace();
 }
예제 #10
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 致命错误
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Fatal(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Fatal();
 }
예제 #11
0
        public void Debug(string title, string content, IDictionary <string, Tag> tags)
        {
            LogContent logContent = LogContent.CreateLog(LogLevelEnum.Debug, _logProvider, title, content, tags);

            LogHost.Instance.Write(logContent);
        }
예제 #12
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 错误
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Error(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Error();
 }
예제 #13
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 警告
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Warn(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Warn();
 }
예제 #14
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 信息
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Info(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Info();
 }
예제 #15
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 调试
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Debug(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Debug();
 }
예제 #16
0
파일: LogBase.cs 프로젝트: taoyu65/Util
 /// <summary>
 /// 跟踪
 /// </summary>
 /// <param name="message">日志消息</param>
 /// <param name="args">参数值</param>
 public virtual void Trace(string message, params object[] args)
 {
     LogContent.Content(message, args);
     Trace();
 }