If i have utility functions that emit logs , how do I get them mirrored in the orion cloud UI? These are functions used inside of tasks, not tasks themselves--so no access to
get_run_logger
. I've seen some references to
PREFECT_LOGGING_EXTRA_LOGGERS
, but no legit examples for code that isn't library code. I have code like this at the top of all my utility function modules
logging.getLogger("utils")
and have set
PREFECT_LOGGING_EXTRA_LOGGERS='utils'
to no avail. Logs don't get streamed up to prefect UI
✅ 1
a
Anna Geller
10/09/2022, 11:37 AM
Your extra logger should be streamed to the prefect backend. If it's not the case, could you open a bug report as a GitHub issue with minimal reproducible example that shows your logger setup and how you use it with Prefect?
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.