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
gertjan
09/29/2022, 7:52 AM
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..
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.