#30316 closed Cleanup/optimization (fixed)
Link to default logging dictConfig in documentation
Reported by: | Andrew Badr | Owned by: | Ahisahar Pretel |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
When people want to customize Django's logging, my guess is that they'll most often want to start by changing something about the default logging setup. Toward this end, it would be helpful if the Django docs included a dictConfig for the default logging setup. Instead, the docs *describe* the default settings (https://docs.djangoproject.com/en/2.1/topics/logging/#default-logging-configuration), and give dictConfigs for several other possible configurations for logging (https://docs.djangoproject.com/en/2.1/topics/logging/#configuring-logging).
Change History (9)
comment:1 Changed 4 years ago by
Easy pickings: | set |
---|---|
Needs documentation: | set |
comment:2 Changed 4 years ago by
Component: | Uncategorized → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
Version: | 2.2 → master |
comment:3 Changed 4 years ago by
Summary: | Include default logging dictConfig in documentation → Link to default logging dictConfig in documentation |
---|
comment:4 Changed 4 years ago by
Owner: | changed from nobody to Ahisahar Pretel |
---|---|
Status: | new → assigned |
Hi, this is my first easy picking fix. I will assign the issue to myself and submit the PR this evening if that is ok.
comment:5 Changed 4 years ago by
Description: | modified (diff) |
---|
comment:6 Changed 4 years ago by
Has patch: | set |
---|
Patch link https://github.com/django/django/pull/11338
comment:7 Changed 4 years ago by
Needs documentation: | unset |
---|
I don't think copying the full config would be great. There are already lots of examples in the doc for people to use.
However... getting people to look at the source is always worth it, so a single line link to
django/utils/log.py
— "For Reference the default logging config is defined in..." (See a68c029e224cebe540da7447dbbd27993b4aa793 forsource
extlink examples.) — would be good.