How can you stream logs to the UI from functions c...
# ask-community
g
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
Prefect only supports logging to the cloud UI with the
get_run_logger
function.
g
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..