Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Events.Log Class Reference

Static class managing the application event log. Applications and services log events on this static class, and it distributes them to registered event sinks. More...

Static Public Member Functions

static void Register (IEventSink EventSink)
 Registers an event sink with the event log. Call Unregister(IEventSink) to unregister it, or Terminate at the end of an application, to unregister and terminate all registered event sinks. More...
 
static bool Unregister (IEventSink EventSink)
 Unregisters an event sink from the event log. More...
 
static bool RegisterExceptionToUnnest (Type ExceptionType)
 Register an exception type to unnest in logging. By default, only the TargetInvocationException is unnested. More...
 
static void Terminate ()
 Must be called when the application is terminated. Stops all event sinks that have been registered. More...
 
static async Task TerminateAsync ()
 Must be called when the application is terminated. Stops all event sinks that have been registered. More...
 
static async void Event (Event Event)
 Logs an event. It will be distributed to registered event sinks. More...
 
static string CleanStackTrace (string StackTrace)
 Cleans a Stack Trace string, removing entries from the asynchronous execution model, making the result more readable to developers. More...
 
static void Debug (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Debug (string Message, params KeyValuePair< string, object >[] Tags)
 Logs a debug event. More...
 
static void Informational (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Informational (string Message, params KeyValuePair< string, object >[] Tags)
 Logs an informational event. More...
 
static void Notice (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Notice (string Message, params KeyValuePair< string, object >[] Tags)
 Logs a notice event. More...
 
static void Warning (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Warning (string Message, params KeyValuePair< string, object >[] Tags)
 Logs a warning event. More...
 
static void Error (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (string Message, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static Exception UnnestException (Exception Exception)
 Unnests an exception, to extract the relevant inner exception. More...
 
static void Error (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Error (Exception Exception, params KeyValuePair< string, object >[] Tags)
 Logs an error event. More...
 
static void Critical (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (string Message, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, string Object, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Critical (Exception Exception, params KeyValuePair< string, object >[] Tags)
 Logs a critical event. More...
 
static void Alert (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (string Message, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Alert (Exception Exception, params KeyValuePair< string, object >[] Tags)
 Logs an alert event. More...
 
static void Emergency (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (string Message, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Emergency (Exception Exception, params KeyValuePair< string, object >[] Tags)
 Logs an emergency event. More...
 
static void Exception (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, string Object, string Actor, string EventId, EventLevel Level, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, string Object, string Actor, string EventId, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, string Object, string Actor, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, string Object, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static void Exception (Exception Exception, params KeyValuePair< string, object >[] Tags)
 Logs an exception. Event type will be determined by the severity of the exception. More...
 
static EventType GetEventType (Exception Exception)
 Gets the event type corresponding to a given exception object. More...
 
static void RegisterAlertExceptionType (bool Lock, params Type[] ExceptionTypes)
 Registers a set of Exception types as Exception types that should generate alert log entries when logged. More...
 
static T[] Join< T > (this T[] Array, params T[] NewElements)
 Joins two arrays More...
 
static bool ElementEquals< T > (this T[] Array1, params T[] Array2)
 Compares two arrays to see if their elements are equal More...
 
static int Compare< T > (this T[] Array1, params T[] Array2)
 Compares two arrays More...
 

Properties

static IEventSink[] Sinks [get]
 Registered sinks. More...
 

Events

static EventHandlerAsync Terminating = null
 Event raised when the application is terminating. More...
 

Detailed Description

Static class managing the application event log. Applications and services log events on this static class, and it distributes them to registered event sinks.

Definition at line 13 of file Log.cs.

Member Function Documentation

◆ Alert() [1/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
TagsVariable set of tags providing event-specific information.

Definition at line 1426 of file Log.cs.

◆ Alert() [2/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1416 of file Log.cs.

◆ Alert() [3/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1405 of file Log.cs.

◆ Alert() [4/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1379 of file Log.cs.

◆ Alert() [5/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1364 of file Log.cs.

◆ Alert() [6/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1348 of file Log.cs.

◆ Alert() [7/15]

static void Waher.Events.Log.Alert ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1393 of file Log.cs.

◆ Alert() [8/15]

static void Waher.Events.Log.Alert ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 1332 of file Log.cs.

◆ Alert() [9/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1322 of file Log.cs.

◆ Alert() [10/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1311 of file Log.cs.

◆ Alert() [11/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1285 of file Log.cs.

◆ Alert() [12/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1270 of file Log.cs.

◆ Alert() [13/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1254 of file Log.cs.

◆ Alert() [14/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 1237 of file Log.cs.

◆ Alert() [15/15]

static void Waher.Events.Log.Alert ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an alert event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1299 of file Log.cs.

◆ CleanStackTrace()

static string Waher.Events.Log.CleanStackTrace ( string  StackTrace)
static

Cleans a Stack Trace string, removing entries from the asynchronous execution model, making the result more readable to developers.

Parameters
StackTraceStack Trace
Returns
Cleaned stack trace

Definition at line 194 of file Log.cs.

◆ Compare< T >()

static int Waher.Events.Log.Compare< T > ( this T[]  Array1,
params T[]  Array2 
)
static

Compares two arrays

Template Parameters
TElement type.
Parameters
Array1First array
Array2Second array.
Returns
Comparison of the arrays.
Type Constraints
T :IComparable 

Definition at line 1847 of file Log.cs.

◆ Critical() [1/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
TagsVariable set of tags providing event-specific information.

Definition at line 1216 of file Log.cs.

◆ Critical() [2/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1206 of file Log.cs.

◆ Critical() [3/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1195 of file Log.cs.

◆ Critical() [4/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1169 of file Log.cs.

◆ Critical() [5/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1154 of file Log.cs.

◆ Critical() [6/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1138 of file Log.cs.

◆ Critical() [7/15]

static void Waher.Events.Log.Critical ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1183 of file Log.cs.

◆ Critical() [8/15]

static void Waher.Events.Log.Critical ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 1122 of file Log.cs.

◆ Critical() [9/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1112 of file Log.cs.

◆ Critical() [10/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1101 of file Log.cs.

◆ Critical() [11/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1075 of file Log.cs.

◆ Critical() [12/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1060 of file Log.cs.

◆ Critical() [13/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1044 of file Log.cs.

◆ Critical() [14/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 1027 of file Log.cs.

◆ Critical() [15/15]

static void Waher.Events.Log.Critical ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a critical event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1089 of file Log.cs.

◆ Debug() [1/8]

static void Waher.Events.Log.Debug ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 323 of file Log.cs.

◆ Debug() [2/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 313 of file Log.cs.

◆ Debug() [3/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 302 of file Log.cs.

◆ Debug() [4/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 276 of file Log.cs.

◆ Debug() [5/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 261 of file Log.cs.

◆ Debug() [6/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 245 of file Log.cs.

◆ Debug() [7/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 228 of file Log.cs.

◆ Debug() [8/8]

static void Waher.Events.Log.Debug ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a debug event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 290 of file Log.cs.

◆ ElementEquals< T >()

static bool Waher.Events.Log.ElementEquals< T > ( this T[]  Array1,
params T[]  Array2 
)
static

Compares two arrays to see if their elements are equal

Template Parameters
TElement type.
Parameters
Array1First array
Array2Second array.
Returns
If the elements of both arrays are equal.

Definition at line 1822 of file Log.cs.

◆ Emergency() [1/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
TagsVariable set of tags providing event-specific information.

Definition at line 1636 of file Log.cs.

◆ Emergency() [2/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1626 of file Log.cs.

◆ Emergency() [3/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1615 of file Log.cs.

◆ Emergency() [4/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1589 of file Log.cs.

◆ Emergency() [5/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1574 of file Log.cs.

◆ Emergency() [6/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1558 of file Log.cs.

◆ Emergency() [7/15]

static void Waher.Events.Log.Emergency ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1603 of file Log.cs.

◆ Emergency() [8/15]

static void Waher.Events.Log.Emergency ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 1542 of file Log.cs.

◆ Emergency() [9/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1532 of file Log.cs.

◆ Emergency() [10/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1521 of file Log.cs.

◆ Emergency() [11/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1495 of file Log.cs.

◆ Emergency() [12/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1480 of file Log.cs.

◆ Emergency() [13/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1464 of file Log.cs.

◆ Emergency() [14/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 1447 of file Log.cs.

◆ Emergency() [15/15]

static void Waher.Events.Log.Emergency ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an emergency event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1509 of file Log.cs.

◆ Error() [1/15]

static void Waher.Events.Log.Error ( Exception  Exception,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
TagsVariable set of tags providing event-specific information.

Definition at line 993 of file Log.cs.

◆ Error() [2/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 969 of file Log.cs.

◆ Error() [3/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 944 of file Log.cs.

◆ Error() [4/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 890 of file Log.cs.

◆ Error() [5/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 861 of file Log.cs.

◆ Error() [6/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 803 of file Log.cs.

◆ Error() [7/15]

static void Waher.Events.Log.Error ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 918 of file Log.cs.

◆ Error() [8/15]

static void Waher.Events.Log.Error ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 787 of file Log.cs.

◆ Error() [9/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 777 of file Log.cs.

◆ Error() [10/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 766 of file Log.cs.

◆ Error() [11/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 740 of file Log.cs.

◆ Error() [12/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 725 of file Log.cs.

◆ Error() [13/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 709 of file Log.cs.

◆ Error() [14/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 692 of file Log.cs.

◆ Error() [15/15]

static void Waher.Events.Log.Error ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an error event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 754 of file Log.cs.

◆ Event()

static async void Waher.Events.Log.Event ( Event  Event)
static

Logs an event. It will be distributed to registered event sinks.

Parameters
EventEvent to log.

Definition at line 138 of file Log.cs.

◆ Exception() [1/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
TagsVariable set of tags providing event-specific information.

Definition at line 1735 of file Log.cs.

◆ Exception() [2/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1725 of file Log.cs.

◆ Exception() [3/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 1714 of file Log.cs.

◆ Exception() [4/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 1688 of file Log.cs.

◆ Exception() [5/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 1673 of file Log.cs.

◆ Exception() [6/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 1657 of file Log.cs.

◆ Exception() [7/7]

static void Waher.Events.Log.Exception ( Exception  Exception,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an exception. Event type will be determined by the severity of the exception.

Parameters
ExceptionException Object.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 1702 of file Log.cs.

◆ GetEventType()

static EventType Waher.Events.Log.GetEventType ( Exception  Exception)
static

Gets the event type corresponding to a given exception object.

Parameters
ExceptionException object.
Returns
Event Type corresponding to Exception .

Definition at line 1746 of file Log.cs.

◆ Informational() [1/8]

static void Waher.Events.Log.Informational ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 439 of file Log.cs.

◆ Informational() [2/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 429 of file Log.cs.

◆ Informational() [3/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 418 of file Log.cs.

◆ Informational() [4/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 392 of file Log.cs.

◆ Informational() [5/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 377 of file Log.cs.

◆ Informational() [6/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 361 of file Log.cs.

◆ Informational() [7/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 344 of file Log.cs.

◆ Informational() [8/8]

static void Waher.Events.Log.Informational ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs an informational event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 406 of file Log.cs.

◆ Join< T >()

static T[] Waher.Events.Log.Join< T > ( this T[]  Array,
params T[]  NewElements 
)
static

Joins two arrays

Template Parameters
TElement type.
Parameters
ArrayOriginal array
NewElementsNew elements to join.
Returns
Joined array.

Definition at line 1797 of file Log.cs.

◆ Notice() [1/8]

static void Waher.Events.Log.Notice ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 555 of file Log.cs.

◆ Notice() [2/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 545 of file Log.cs.

◆ Notice() [3/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 534 of file Log.cs.

◆ Notice() [4/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 508 of file Log.cs.

◆ Notice() [5/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 493 of file Log.cs.

◆ Notice() [6/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 477 of file Log.cs.

◆ Notice() [7/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 460 of file Log.cs.

◆ Notice() [8/8]

static void Waher.Events.Log.Notice ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a notice event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 522 of file Log.cs.

◆ Register()

static void Waher.Events.Log.Register ( IEventSink  EventSink)
static

Registers an event sink with the event log. Call Unregister(IEventSink) to unregister it, or Terminate at the end of an application, to unregister and terminate all registered event sinks.

Parameters
EventSinkEvent Sink.

Definition at line 30 of file Log.cs.

◆ RegisterAlertExceptionType()

static void Waher.Events.Log.RegisterAlertExceptionType ( bool  Lock,
params Type[]  ExceptionTypes 
)
static

Registers a set of Exception types as Exception types that should generate alert log entries when logged.

Parameters
LockIf list of exceptions should be locked after the call.
ExceptionTypesTypes of exceptions.
Exceptions
InvalidOperationExceptionIf list has been locked and new types cannot be added.

Definition at line 1761 of file Log.cs.

◆ RegisterExceptionToUnnest()

static bool Waher.Events.Log.RegisterExceptionToUnnest ( Type  ExceptionType)
static

Register an exception type to unnest in logging. By default, only the TargetInvocationException is unnested.

Parameters
ExceptionTypeType of exception to unnest.

Definition at line 68 of file Log.cs.

◆ Terminate()

static void Waher.Events.Log.Terminate ( )
static

Must be called when the application is terminated. Stops all event sinks that have been registered.

Definition at line 92 of file Log.cs.

◆ TerminateAsync()

static async Task Waher.Events.Log.TerminateAsync ( )
static

Must be called when the application is terminated. Stops all event sinks that have been registered.

Definition at line 100 of file Log.cs.

◆ UnnestException()

static Exception Waher.Events.Log.UnnestException ( Exception  Exception)
static

Unnests an exception, to extract the relevant inner exception.

Parameters
ExceptionException
Returns
Unnested exception.

Definition at line 828 of file Log.cs.

◆ Unregister()

static bool Waher.Events.Log.Unregister ( IEventSink  EventSink)
static

Unregisters an event sink from the event log.

Parameters
EventSinkEvent Sink.
Returns
If the sink was found and removed.

Definition at line 47 of file Log.cs.

◆ Warning() [1/8]

static void Waher.Events.Log.Warning ( string  Message,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
TagsVariable set of tags providing event-specific information.

Definition at line 671 of file Log.cs.

◆ Warning() [2/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
TagsVariable set of tags providing event-specific information.

Definition at line 661 of file Log.cs.

◆ Warning() [3/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
TagsVariable set of tags providing event-specific information.

Definition at line 650 of file Log.cs.

◆ Warning() [4/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
TagsVariable set of tags providing event-specific information.

Definition at line 624 of file Log.cs.

◆ Warning() [5/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
TagsVariable set of tags providing event-specific information.

Definition at line 609 of file Log.cs.

◆ Warning() [6/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
TagsVariable set of tags providing event-specific information.

Definition at line 593 of file Log.cs.

◆ Warning() [7/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
string  EventId,
EventLevel  Level,
string  Facility,
string  Module,
string  StackTrace,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
LevelEvent Level.
FacilityFacility can be either a facility in the network sense or in the system sense.
ModuleModule where the event is reported.
StackTraceStack Trace of event.
TagsVariable set of tags providing event-specific information.

Definition at line 576 of file Log.cs.

◆ Warning() [8/8]

static void Waher.Events.Log.Warning ( string  Message,
string  Object,
string  Actor,
string  EventId,
params KeyValuePair< string, object >[]  Tags 
)
static

Logs a warning event.

Parameters
MessageFree-text event message.
ObjectObject related to the event.
ActorActor responsible for the action causing the event.
EventIdComputer-readable Event ID identifying type of even.
TagsVariable set of tags providing event-specific information.

Definition at line 638 of file Log.cs.

Property Documentation

◆ Sinks

IEventSink [] Waher.Events.Log.Sinks
staticget

Registered sinks.

Definition at line 132 of file Log.cs.

Event Documentation

◆ Terminating

EventHandlerAsync Waher.Events.Log.Terminating = null
static

Event raised when the application is terminating.

Definition at line 127 of file Log.cs.


The documentation for this class was generated from the following file: