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
Anna Geller
08/11/2022, 3:01 PM
atm you would need to create your custom logger and add it as extra loggers in Prefect settings
n
Nelson Griffiths
08/11/2022, 3:02 PM
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
Anna Geller
08/11/2022, 3:05 PM
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
Nelson Griffiths
08/11/2022, 3:07 PM
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
Anna Geller
08/11/2022, 3:08 PM
great to hear - Prefect will definitely improve on that in the future