Пример #1
0
 public static void Log(this ExceptionlessClient client, string logMessage, string source = null, LogLevels level = LogLevels.Info)
 {
     if (client.LoggingEnabled())
     {
         client.CreateLog(source, logMessage, level.Text()).Submit();
     }
 }
Пример #2
0
 public static void LogWithTags(this ExceptionlessClient client, string logMessage, string[] tags, string source = null, LogLevels level = LogLevels.Info)
 {
     if (client.LoggingEnabled())
         client.CreateLog(source, logMessage, level.Text())
             .AddTags(tags)
             .Submit();
 }