CiviWiki/OpenCiviWiki

enable Rich terminal output

brylie opened this issue · 3 comments

Task

  • add Rich to this project with the command poetry add rich --group dev
  • follow the Rich configuration instructions
  • add the following code to the LOGGING = {...} configuration in the project settings
"formatters": {
    "rich": {"datefmt": "[%X]"},
},
"console": {
    "class": "rich.logging.RichHandler",
    "filters": ["require_debug_true"],
    "formatter": "rich",
    "level": "DEBUG",
    "rich_tracebacks": True,
    "tracebacks_show_locals": True,
},

Would like to work on this.

Do you only want to show the warnings or every message generated by django?

Let's start with errors and warnings.