Example #1
0
 /// <summary>
 ///   记录日志
 /// </summary>
 /// <param name="name"> 原始的消息 </param>
 /// <param name="msg"> 处理后的消息 </param>
 /// <param name="type"> 日志类型 </param>
 /// <param name="typeName"> 类型名称 </param>
 private static void Record(string name, string msg, LogType type, string typeName = null)
 {
     RecordInner(type.Level(), name, msg, type, typeName);
 }
Example #2
0
 /// <summary>
 ///   记录日志
 /// </summary>
 /// <param name="name"> 原始的消息 </param>
 /// <param name="msg"> 处理后的消息 </param>
 /// <param name="type"> 日志类型 </param>
 /// <param name="typeName"> 类型名称 </param>
 /// <param name="formatArgs">文本格式化参数</param>
 private static void Record(string name, LogType type, string typeName, string msg, params object[] formatArgs)
 {
     RecordInner(type.Level(), name, FormatMessage(msg, formatArgs), type, typeName);
 }