You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many systems require a persistent papertrail of events and actions for traceability.
Currently TeamsConnector does not log or store a record when a notification was sent and whether this was successful or not.
To fix this a logger should be configurable which allows the output to different targets.
stdout
File
Rails ActiveRecord
Other (user configurable)
Concept
During configuration a logger can be defined. The interface is similar to a Rails ActiveRecord to allow easy integration without a layer in between.
This logger is a class that defines the class method ::create for initializing a new notification entry. For persistent papertrails the result must contain an id that will be passed to the template (e.g to display it in the notification).
The entry will be updated after the HTTP request is made. For this the class must support ::find(id) and the object must implement the #update method.
The attributes of the entry are:
id (integer/string)
target_channels (string)
created_at, updated_at (timestamps)
template (string)
The text was updated successfully, but these errors were encountered:
Many systems require a persistent papertrail of events and actions for traceability.
Currently TeamsConnector does not log or store a record when a notification was sent and whether this was successful or not.
To fix this a logger should be configurable which allows the output to different targets.
Concept
During configuration a logger can be defined. The interface is similar to a Rails ActiveRecord to allow easy integration without a layer in between.
This logger is a class that defines the class method
::create
for initializing a new notification entry. For persistent papertrails the result must contain an id that will be passed to the template (e.g to display it in the notification).The entry will be updated after the HTTP request is made. For this the class must support
::find(id)
and the object must implement the#update
method.The attributes of the entry are:
The text was updated successfully, but these errors were encountered: