FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

feat(logging): update logging configuration and format

Merged E. Evstafiev requested to merge dev-update-logging-configuration-and-format into main

Refactor configure_logging to incorporate conditional handlers. Add color support in console output and toggle between console and JSON formatting based on the CONSOLE_LOGGING environment variable.

  • Enable toggling between console and JSON formatters based on CONSOLE_LOGGING.
  • Add color support to console logging when CONSOLE_LOGGING is enabled.
  • Simplify processor list in structlog.configure.
  • Set disable_existing_loggers.
  • Update README.md to describe LOG_LEVEL and CONSOLE_LOGGING usage.

A part of: https://gitlab.developers.cam.ac.uk/uis/devops/iam/authentication/infrastructure/-/issues/168

Edited by E. Evstafiev

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading