Opened 10 years ago

Closed 10 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: dev
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 by Claude Paroz, 10 years ago

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 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #24361

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