Daniel
10/09/2024, 1:16 PMMarvin
10/09/2024, 1:16 PMPREFECT_LOGGING_LEVEL
to "DEBUG"
to ensure that all debug-level logs are captured:
bash
export PREFECT_LOGGING_LEVEL="DEBUG"
Alternatively, you can use a Prefect Profile setting to achieve the same effect. When you set this variable, it instructs Prefect to log at the DEBUG level across all components.
More details can be found in the Prefect 2.x logging guide.Daniel
10/09/2024, 1:17 PMMarvin
10/09/2024, 1:17 PMPREFECT_LOGGING_LEVEL
is set, the root logger in Prefect is configured to display logs at the WARNING
level and above. This means that out-of-the-box, Prefect will show logs for the following levels:
1. WARNING: Default level if not explicitly set otherwise.
2. ERROR: Logs that indicate a more severe problem than warnings, typically leading to some form of failure.
3. CRITICAL: Logs that indicate a very serious problem that has caused or will lead to application failure.
These log levels help in ensuring that important messages related to the performance of the workflow get attention.
You can read more about Prefect's logging configurations in their official logging guide.