Log Log

yaml
type: "io.kestra.plugin.core.log.Log"

Log a message to the console.

Examples

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

message

  • Type:
    • string
    • array
  • Dynamic: ✔️
  • Required: ✔️

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

It can be a string or an array of strings.

level

  • Type: string
  • Dynamic:
  • Required:
  • Default: INFO
  • Possible Values:
    • ERROR
    • WARN
    • INFO
    • DEBUG
    • TRACE

The log level. If not specified, it defaults to INFO.

Outputs

Definitions

Was this page helpful?