Exemple #1
0
 /// <summary>
 /// 创建事件生成器
 /// </summary>
 /// <param name="level">平台日志等级</param>
 /// <param name="content">日志内容</param>
 /// <returns></returns>
 private el.EventBuilder CreateBuilder(LogLevel level, ILogContent content)
 {
     if (content.Exception != null)
     {
         return(_client.CreateException(content.Exception).AddTags(level.Description()));
     }
     return(_client.CreateLog(GetMessage(content), ConvertTo(level)));
 }