Is there a way to get the logger provided by prefe...
# prefect-community
n
Is there a way to get the logger provided by prefect to log to stdout using the RichHandler? Or do I just need to create my own logger to do that?
a
atm you would need to create your custom logger and add it as extra loggers in Prefect settings
n
So it seems that even creating my own logger with a RichHandler does not use the rich colors when prefect includes it in the stdout.
a
does the colorful output mean that much to you? 😄 Prefect is an investor in https://www.textualize.io/ so I believe we may add better support for it in the future, but afaik not a high priority to do it anytime soon - to be fully transparent
🙌 1
if that helps, we do support colors in the UI to distinguish diff log levels
n
Haha it is not that bit of a deal 😂. It makes them easier to read when testing stuff for me. I was just curious! And yes the UI logs are great.
🙌 1
Thanks for answering my question!
🙏 1
a
great to hear - Prefect will definitely improve on that in the future
j
Check out this example on Discourse.
n
Oh this is exactly what I was looking for! Thank you @Jeff Hale!
🎉 1
a
Nice Jeff! Forgot about this one