Skip to content

Commit

Permalink
Added and Configured Rich
Browse files Browse the repository at this point in the history
  • Loading branch information
ApoorvaKashyap committed Oct 1, 2022
1 parent 74aab60 commit 52283b7
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
51 changes: 50 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions project/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,21 @@
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
},
]


LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {"rich": {"datefmt": "[%X]"}},
"handlers": {
"console": {
"class": "rich.logging.RichHandler",
"formatter": "rich",
"level": "DEBUG",
# "filters": ["require_debug_true"],
"rich_tracebacks":True,
"tracebacks_show_locals":True
}
},
"loggers": {"django": {"handlers": ["console"]}},
}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ psycopg2-binary = "^2.9.3"
django-taggit = "^3.0.0"
Pillow = "^9.2.0"
requests = "^2.28.1"
rich = "^12.5.1"

[tool.poetry.dev-dependencies]
black = "^22.6.0"
Expand Down

0 comments on commit 52283b7

Please sign in to comment.