Saulius Beinorius

    Saulius Beinorius

    1 year ago
    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.
    j

    josh

    1 year ago
    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 🙂
    Saulius Beinorius

    Saulius Beinorius

    1 year ago
    Here, anyone else is also welcome to add their suggestions or concerns: https://github.com/PrefectHQ/prefect/issues/3712