In the edx-platform application the log configuration is currently generated inside of a function call that doesn’t accept any meaningful parameters (here). This makes it impossible to change the formatting or structure of the logs, or add additional logging handlers (Sentry, for example) without making extensive code changes to the platform. It would be beneficial to expose more customizability to how the logging is set up. For instance, either make this function more flexible, so that it can accept a dict_config that gets merged with the one inside the function, or moving the log configuration into the settings module so that it can be managed in the same way as the other configuration values.
After some discussion in the last contributors meeting, we’re going to proceed with this by opening a PR with an ADR. It doesn’t look like a large enough change to justify an OEP.
We have taken a first pass of writing up an ADR to cover extending the configurability of logging in edx-platform. It is in a PR here if anyone is able to take a look.