Skip to main content

@log-right/base > EventConfig

EventConfig interfaceโ€‹

Configuration parameters to be applied to a specific event type

Signature:
export interface EventConfig 

Propertiesโ€‹

PropertyTypeDescription
contextunknownA free-format field that will be added to all IEvent objects (to be used in custom logic added by the user).
messagestringThe default IEvent message to use fo when none is provided
namestringThe default IEvent name to be used when none is provided
severitySeverityThe severity of the IEvent - this value will be used to determine if we should considered the event occurrence a: - Success (event will be considered valid, no error handler action should be taken, and DO NOT report event) - Alert (event will be considered valid, and no error handler action should be taken, but report event) - Error (event will be considered invalid, error handler action will be taken, and report event)
sourcestringThe IEvent source string to be used when none is provided
typeEventTypeThe type of the IEvent (values can be defined by the user)