DecisionRules has a simple and technology-independent logging system that logs simply to STDOUT. You can still process this standard output in all modern logging add-ons that you use in your infrastructure.
The type of logger that is going to be chosen is decided by environment variable. This variable called
LOGGER_TYPEtakes a string as a parameter with name of the logger you desire to use.
LOGGER_TYPE=JSON or STRING
This logger outputs data in JSON structure consisting of:
Resulting into following object:
"message":"System listening on port TCP 8080"
Outputs data a string format that consist of:
Data are always in format
[YYYY-MM-DDTHH:mm:ss.sssZ] <SEVERITY> MESSAGE
Note that the message does not necessarily need to end with
Example output for this logger is:
[2023-02-02T08:51:39.743Z] <INFO> DecisionRules server listening on the port 8080