https://prefect.io logo
#prefect-community
Title
# prefect-community
s

Sylvain Hazard

05/17/2022, 3:08 PM
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

Kevin Kho

05/17/2022, 4:03 PM
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

Sylvain Hazard

05/18/2022, 6:44 AM
Alright, thanks for the heads up. At least I can get the logs from the k8s pods directly, I guess that's something 😅
k

Kevin Kho

05/19/2022, 2:16 PM
Check this btw for more info
s

Sylvain Hazard

05/19/2022, 2:27 PM
Awesome, thanks !
5 Views