Aller au contenu principal

@log-right/base > Event_2

Event_2 interface​

Data used to identify a specific system event

Signature:
export interface Event extends Error 
Extends: Error

Properties​

PropertyTypeDescription
context?unknown(Optional) A free-format field that will be added to all IEvent objects (to be used in custom logic added by the user).
details?string | null(Optional) A string that includes additional information about the event
idstringA unique string that can be used to identify the event
messagestringA message string to be used in logging and display components associated the event
severitySeverityDetermines the severity level of the event (a number 0 through 10). This field is used to determine how the system should respond to an event
source?string | null(Optional) A string representing the source that initiated the event
typeEventTypeThe type of the event (values can be defined by the user)
userId?string(Optional) A string that can be used to represent the current user performing actions in the application/triggering processes