Jonah Duffin
10/18/2024, 6:00 PMPREFECT_LOGGING_ROOT_LEVEL=INFO
When I do this, my library's logs are picked up by Prefect console logger and are logged to a terminal, including the Prefect formatting/coloring/etc. However, these logs are not sent to the Prefect Server or available in the UI. Running this command:
prefect flow-run logs <FLOW_RUN_ID>
Returns a smaller subset of the logs that appeared in my console, seeming only to log default logs from Prefect or those explicitly passed into the Prefect logger fetched with get_run_logger(). (It shows the same logs that appeared in the console before setting PREFECT_LOGGING_ROOT_LEVEL=INFO)
Any input on how I can send third party logs to the Prefect Server and UI?Nate
10/18/2024, 6:23 PMPREFECT_LOGGING_EXTRA_LOGGERS
which you'd set like
export PREFECT_LOGGING_EXTRA_LOGGERS=pytorch,requests
etcJonah Duffin
10/22/2024, 1:51 PMPREFECT_LOGGING_ROOT_HANDLERS="[api]"
PREFECT_LOGGING_LEVEL=INFO
PREFECT_LOGGING_HANDLERS_API_LEVEL=INFO
PREFECT_LOGGING_EXTRA_LOGGERS=library1,library2
PREFECT_LOGGING_SERVER_LEVEL=INFO