Prefect Logging FAQ

How to add logs to my flows and tasks?

How to add formatting to my logs or customize console log color using rich?

How to change log level e.g. to DEBUG?

prefect config set PREFECT_LOGGING_LEVEL='DEBUG'

How to add extra loggers to Prefect 2.0?

Can I define the logger globally?

Can I define a logger custom to a specific flow?

How to suppress some log messages?

How can I globally disable sending logs to the backend API?

How logging configuration varies between Prefect 2.0 and 1.0?

Why are the Dask logs not being shown in the Prefect UI?

1 Like