示例#1
0
 public void CustomEvent(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackEvent(text, properties.ToDictionary());
     _telemetryClient.Flush();
 }
示例#2
0
 public void Fatal(string text, Exception ex, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace($"{text}\n{ex}", SeverityLevel.Critical, properties.ToDictionary());
     _telemetryClient.TrackException(ex, properties.ToDictionary());
     _telemetryClient.Flush();
 }
示例#3
0
 public void Info(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Information, properties.ToDictionary());
     _telemetryClient.Flush();
 }
示例#4
0
 public void Fatal(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Critical, properties.ToDictionary());
     _telemetryClient.Flush();
 }
示例#5
0
 public void Debug(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Verbose, properties.ToDictionary());
 }