Log
yaml
type: "io.kestra.core.tasks.log.Log"
Log a message to the console.
Examples
yaml
id: "log"
type: "io.kestra.core.tasks.log.Log"
level: DEBUG
message: "{{ task.id }} > {{ taskrun.startDate }}"
Log one or more messages to the console.
yaml
id: hello_world
namespace: dev
tasks:
- id: greeting
type: io.kestra.core.tasks.log.Log
message:
- Kestra team wishes you a great day 👋
- If you need some help, reach out via Slack
Properties
level
- Type: string
- Dynamic: ❌
- Required: ❌
- Default:
INFO
- Possible Values:
ERROR
WARN
INFO
DEBUG
TRACE
The log level. If not specified, it defaults to
INFO
.
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.