Ejemplo n.º 1
0
 public void CustomEvent(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackEvent(text, properties.ToDictionary());
     _telemetryClient.Flush();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public void Info(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Information, properties.ToDictionary());
     _telemetryClient.Flush();
 }
Ejemplo n.º 4
0
 public void Fatal(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Critical, properties.ToDictionary());
     _telemetryClient.Flush();
 }
Ejemplo n.º 5
0
 public void Debug(string text, ILoggerProperties properties = null)
 {
     _telemetryClient.TrackTrace(text, SeverityLevel.Verbose, properties.ToDictionary());
 }