Skip to main content
Version: ACE 5

Logger

Overview

Logger allows creating ACE developer defined log messages that are useful for debugging the flows.

Configuration

  • Log message - the message to be logged
  • log level - the log level to use
  • context
    • key - key for the context item
    • source path - path in doc from which to take the value
    • value - static value to use

Example

Sample Logger Flow
    tags:
- example
steps:
- stepType: log
config:
level: info
context:
- key: Message
sourcePath: message
message: "Log input "
name: Logger
description: ""
condition: ""
sampleData:
message: this should be logged

Result

{
"doc": {
"message": "this should be logged"
},
"errors": [],
"performance": {
"steps": [
{
"step": "log",
"executionTime": 1
}
],
"executionTimeOfFlow": 1,
"timeMetric": "ms"
}
}

Logs will have a log with "message":"Log input " and {"Message": "this should be logged"} with level info.