Logger
Overview
Logger allows creating ACE developer defined log messages that are useful for debugging the flows.
Configuration
Log message
- the message to be loggedlog level
- the log level to usecontext
key
- key for the context itemsource path
- path indoc
from which to take the valuevalue
- static value to use
Example
Sample Logger Flow
{
"id": "1341f81e-daa7-41e7-ada5-33a4de488651",
"name": "exampleLogger",
"flow": {
"name": "exampleLogger",
"description": "",
"steps": [
{
"stepType": "log",
"color": "rgb(28, 244, 229)",
"displayName": "Logger",
"isSelected": true,
"config": {
"level": "info",
"context": [
{
"key": "Message",
"sourcePath": "message"
}
],
"message": "Log input "
}
}
]
},
"inputSchema": {
"message": "this should be logged"
},
"createDate": "2021-10-09T20:06:37.129Z",
"tags": [
"example"
],
"inputSchemaLabel": "",
"version": 1
}
Result
{
"doc": {
"message": "this should be logged"
},
"errors": [],
"performance": {
"steps": [
{
"step": "log",
"executionTime": 1
}
],
"executionTimeOfFlow": 1,
"timeMetric": "ms"
}
}
Logs will have a log having "message":"Log input " and {"Message": "this should be logged"} with log level info.