Skip to content

Cloud Logs ​

The Cloud Logs block sends a message to the log service you connected, like Loki or an OpenTelemetry collector. Use it to keep logs in one central place where you can search them and set alerts. Your data passes through it untouched.

When to use it ​

  • Keep production logs somewhere searchable, instead of only on the server.
  • Record business events you want to alert on, like failed payments.
  • Don't use it for quick debugging while you build. Console Log is simpler and needs no setup.
  • Don't log secrets, passwords or full personal data. They end up in a system that other people can search.

Inputs ​

FieldRequiredDefaultWhat it does
ConnectionYesnoneThe log service integration to send to. Set one up first, see Observability.
MessageNothe incoming valueThe text or data to send. Can be a JS expression, for example js: "Payment failed for " + input.orderId. Leave it empty to send whatever reached the block.
LevelNoinfoHow serious the message is: info, warn or error.

Outputs ​

HandleWhen it is used
Next (right)Always. The next block receives exactly what this block received.

Example ​

Record a failed payment as an error. The previous block output { "orderId": 42, "reason": "card_declined" }.

FieldValue
Connectionloki-prod
Messagejs: "Payment failed for order " + input.orderId + ": " + input.reason
Levelerror

Your log service receives an error entry with the text Payment failed for order 42: card_declined. The next block still receives the original object.

How it behaves ​

  • The message you type wins. When Message is filled in, the incoming value is not sent. When it is empty, the incoming value is.
  • A missing or wrong connection is an error. The block fails and the Error Handler runs.
  • It never changes your data.

Released under the Apache License 2.0. Enterprise features are under the Fluxify Enterprise Edition License.