Hey, is it possible to have extra_loggers on a diffrent log_level than PREFECT__LOGGING__LEVEL? I´d like to have my custom logger on info level, and CloudTaskRunner and CloudFlowRunner logger on warning
k
Kevin Kho
04/23/2021, 1:45 PM
Hi @Sebastian! I will double check but I believe there is no way to do this at the moment. You would need to grab that logger in your code and set the level that way.
s
Sebastian
04/23/2021, 1:49 PM
Hi Kevin, in the meantime i got a pretty hacky workaround:
It does work, but it feels strange to change the global logging level at every logging message. I hope i just missed something
k
Kevin Kho
04/23/2021, 1:54 PM
No I think this is right (although I was expecting you to do this for the other loggers but either way works). There is no Prefect built-in feature to adjust the levels of these loggers separately.
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.