https://prefect.io logo
Title
g

gertjan

09/09/2022, 11:23 AM
How can you stream logs to the UI from functions called in a Task that are using their own logger outside prefect? I can see those logs in the terminal, but never in the UI. I only can see logs that are defined with the
get_run_logger
👀 1
j

Jean Luciano

09/09/2022, 3:29 PM
Prefect only supports logging to the cloud UI with the
get_run_logger
function.
g

gertjan

09/10/2022, 8:17 AM
Aww, thats a bummer for us.. I will need to tweak that
I figured you can set your own logger with this one:
PREFECT_LOGGING_EXTRA_LOGGERS
It’s now streaming these logs to the UI, if I don’t use multiprocessing. while using multiprocessing they are gone again..