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?
08/11/2022, 3:01 PM
atm you would need to create your custom logger and add it as extra loggers in Prefect settings
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.
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
if that helps, we do support colors in the UI to distinguish diff log levels
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.
Thanks for answering my question!
08/11/2022, 3:08 PM
great to hear - Prefect will definitely improve on that in the future