Log a message to the console.

yaml
type: "io.kestra.plugin.core.log.Log"
yaml
id: "log"
type: "io.kestra.plugin.core.log.Log"
level: DEBUG
message: "{{ task.id }} > {{ taskrun.startDate }}"

Log one or more messages to the console.

yaml
id: hello_world
namespace: company.team

tasks:
  - id: greeting
    type: io.kestra.plugin.core.log.Log
    message:
      - Kestra team wishes you a great day 👋
      - If you need some help, reach out via Slack
Properties

One or more message(s) to be sent to the backend as logs

It can be a string or an array of strings.

Default INFO
Possible Values
ERRORWARNINFODEBUGTRACE

The level on which the message should be logged. Note that this is different from the core logLevel property which sets the minimum log level to be persisted in the backend database. The level property is used to determine the log level of the message emitted by the Log task, while logLevel is used to filter which logs should be stored in the backend. Both properties can be used together to control the log level of the message emitted by the task and the logs that are persisted in the backend. If not specified, the level defaults to INFO.