9 [DefaultImplementation(typeof(LogService))]
30 void LogWarning(
string Message, params KeyValuePair<string, object?>[] Tags);
43 void LogException(Exception ex, params KeyValuePair<string, object?>[] extraParameters);
50 void LogAlert(
string Message, params KeyValuePair<string, object?>[] Tags);
75 IList<KeyValuePair<string, object?>>
GetParameters(params KeyValuePair<string, object?>[] Tags);
Base class for event sinks.
A log implementation for logging warnings, exceptions and events.
void LogAlert(string Message, params KeyValuePair< string, object?>[] Tags)
Invoke this method to add an alert statement to the log.
void LogWarning(string Message, params KeyValuePair< string, object?>[] Tags)
Invoke this method to add a warning statement to the log.
string LoadExceptionDump()
Restores any exception dump that has previously been persisted with the SaveExceptionDump method.
void RemoveListener(IEventSink EventSink)
Removes an IEventSink to the log service.
void SaveExceptionDump(string Title, string StackTrace)
Saves an exception dump to disc, completely offline. A last resort operation.
void LogException(Exception ex)
Invoke this method to add an Exception entry to the log.
IList< KeyValuePair< string, object?> > GetParameters(params KeyValuePair< string, object?>[] Tags)
Gets a list of extra parameters that are useful when logging: Platform, RuntimeVersion,...
void AddListener(IEventSink EventSink)
Adds an IEventSink to the log service. Any listeners will be called whenever any log event occurs.
void DeleteExceptionDump()
Removes any exception dump from disc, if it exists.
void LogException(Exception ex, params KeyValuePair< string, object?>[] extraParameters)
Invoke this method to add an Exception entry to the log.
Interface for all event sinks.