Hey Prefect peeps,
Do you have an example of how we can use the
prefect.context.get("logger")
to log throught our entire project ? eg. when sub modules are called by calling their classes in that flow?
k
Kevin Kho
06/24/2021, 1:19 PM
Hey @Ben Muller, I don’t think there is a way around this. You have to get the logger in the task and use it similar to using a Python logger without Prefect. If you have a submodule with it’s own logger though, you can add that as an Extra logger to 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.