Enable or disable logs storage
By default, ZenML uses a logging handler to capture the logs that occur during the execution of a step. Users are free to use the default python logging module or print statements, and ZenML's logging handler will catch these logs and store them.
These logs are stored within the respective artifact store of your stack. You can display the logs in the dashboard as follows:
Note that if you are not connected to a cloud artifact store with a service connector configured then you will not be able to view your logs in the dashboard. Read more here.
If you do not want to store the logs in your artifact store, you can:
Disable it by using the
enable_step_logs
parameter either with your@pipeline
or@step
decorator:Disable it by using the environmental variable
ZENML_DISABLE_STEP_LOGS_STORAGE
and setting it totrue
. This environmental variable takes precedence over the parameters mentioned above. Note this environmental variable needs to be set on the execution environment, i.e., on the orchestrator level:
Last updated