Log Log

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

Log a message in the task logs

Examples

yaml
id: "log"
type: "io.kestra.core.tasks.log.Log"
level: WARN
message: "{{task.id}} > {{taskrun.startDate}}"
yaml
id: "log"
type: "io.kestra.core.tasks.log.Log"
level: WARN
message:    - 'Task id : "{{task.id}}"'   - 'Start date: "{{taskrun.startDate}}"'

Properties

message

  • Type:stringarray
  • Dynamic: ✔️
  • Required: ✔️

The message(s) to log

Can be a string or an array of string

level

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

The log level