https://prefect.io logo
s

Saulius Beinorius

11/24/2020, 9:38 AM
Hey, I'm (yet another) person who would like to have a more flexible logging configuration in Prefect. I was a bit surprised that Prefect does not allow specifying logging via
logging.dictConfig()
-like format, especially since Dask supports it (https://docs.dask.org/en/latest/debugging.html#logs). If you could point me in the right direction where the logging setup happens (I think I found the agent's logging setup, but not sure about task logging, I assume that's separate for each execution environment?), I would be willing to work on a PR to allow specifying logging via dict format. For reference, I have `uvicorn`'s server, which has similar options to Prefect, but also allows passing the entire logging configuration.
upvote 2
j

josh

11/24/2020, 12:34 PM
Hey @Saulius Beinorius a lot of the logging set up happens here https://github.com/PrefectHQ/prefect/blob/master/src/prefect/utilities/logging.py Would you mind also opening an issue for your preferred logging enhancements? Trying to collect community thoughts/suggestions for when we improve the logging experience 🙂
s

Saulius Beinorius

11/25/2020, 7:55 AM
Here, anyone else is also welcome to add their suggestions or concerns: https://github.com/PrefectHQ/prefect/issues/3712