Opened 5 years ago

Closed 4 years ago

#23394 closed Cleanup/optimization (duplicate)

Need documentation for merging the project's logging configuration with Django's defaults

Reported by: nrogers64 Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This part of the logging documentation says: "Prior to Django 1.5, the LOGGING setting always overwrote the default Django logging configuration. From Django 1.5 forward, it is possible to get the project’s logging configuration merged with Django’s defaults, hence you can decide if you want to add to, or replace the existing configuration."

However, I don't see an example of how to get the project's logging configuration merged with Django's defaults. Since there's no example, I assume that it's supposed to be easy to do, but I can't figure out how to do it. I'm not the only one, either. Have a look at this Stack Overflow question that I posted. Would you be willing to add an example of getting the project's logging configuration merged with Django's defaults?

Change History (2)

comment:1 Changed 5 years ago by Claude Paroz

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization
Version: 1.6master

The documentation could be clearer. With 'disable_existing_loggers': False, if you redefine an existing logger, you will have to redefine it entirely, no merge effect are applied with the existing logger (AFAIK).

comment:2 Changed 4 years ago by Tim Graham

Resolution: duplicate
Status: newclosed

Duplicate of #24361

Note: See TracTickets for help on using tickets.
Back to Top