Package io.kestra.core.tasks.log
Class Log
java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.core.tasks.log.Log
- All Implemented Interfaces:
RunnableTask<VoidOutput>
@Example(code={"level: DEBUG","message: \"{{task.id}} > {{taskrun.startDate}}\""}) @Example(title="Log one or more messages to the console",full=true,code="id: hello_world\nnamespace: dev\n\ntasks:\n - id: greeting\n type: io.kestra.core.tasks.log.Log\n message:\n - Kestra team wishes you a great day \ud83d\udc4b\n - If you need some help, reach out via Slack")
public class Log
extends Task
implements RunnableTask<VoidOutput>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(RunContext runContext) Thsis method is called inside the Worker to run (execute) the task.Methods inherited from class io.kestra.core.models.tasks.Task
findById, findById, isFlowable, isSendToWorkerTask
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
run
Description copied from interface:RunnableTaskThsis method is called inside the Worker to run (execute) the task.- Specified by:
runin interfaceRunnableTask<VoidOutput>- Throws:
Exception
-
log
-