Hey there ! Got a little logger issue. I'm using a...
# prefect-community
s
Hey there ! Got a little logger issue. I'm using a custom library in a task that uses
from loguru import logger
and uses that for logging. Unfortunately, those don't appear in Prefect logs which is not great. I've tried adding
PREFECT__LOGGING__EXTRA_LOGGERS="['loguru']"
in my environment but doesn't seem to work. Is there another way to do this ?
k
I have seen this asked 3-4 and haven’t seen a way that it plays well with Prefect yet. Part of the 2.0 roadmap is making loggers/handlers like this easier to integrate though
s
Alright, thanks for the heads up. At least I can get the logs from the k8s pods directly, I guess that's something 😅
k
Check this btw for more info
s
Awesome, thanks !