Skip to content

Refactor logging 2

Bengfort requested to merge refactor-logging-2 into main

This builds on !1548 (merged) and makes some more drastic changes:

  • Move the logging config from settings/ to example_deployment/ This puts the burden of coming up with a useful configuration on the system administrators. Monitoring logs will no longer show up in development.
  • Remove special handling of django.server. The development server is only used in development. Since the configuration was moved to the documentation it is no longer used in development anyway, so this is no longer relevant.
  • Remove the separate log file for monitoring and log to console instead. Since the name of the logger is included in the log message you can easily find monitoring messages using grep monitoring. Depending on where the logs are propagated to, this might be a privacy issue though.

If this is accepted we need to adapt the documentation.

Edited by Bengfort

Merge request reports