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