Logging and Monitoring

Log

  • Description: the Log component is very useful for logging messages during route processing. It allows you to see what is happening in your integrations in real-time, aiding in debugging and monitoring.

  • Example

    • The flow starts with a POST request at the endpoint /hello.

    • It removes the header Exchange.HTTP_PATH from the message.

    • It makes an HTTP call to an external endpoint.

    • Finally, it logs the response from that call.

Script

Diagram

- from:
    uri: "rest:post:hello"
    steps:
    - removeHeader:
        name: Exchange.HTTP_PATH
    - to:
        uri: "http://teste.free.beeceptor.com/xml-request"
        parameters:
          bridgeEndpoint: true
    - to:
        uri: "log:responseLogger"
component log
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]