Project

General

Profile

Development #8028

Add facility to make loglevel of handlers dynamic

Added by Benjamin Dauvergne about 4 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
06 Aug 2015
Due date:
% Done:

100%

Patch proposed:
No
Planning:
No

Description

Adapted from our hobo library, this patch adds a new handler which can detect some subclass of the int which indicate to retrieve the log level from some setting of the Django settings module.

Associated revisions

Revision 0bb88003 (diff)
Added by Benjamin Dauvergne about 4 years ago

use a special logger to make DEBUG log activation dynamic (fixes #8028)

Adds a new logger called DjangoLogger which check if the level is a
SettingsLogLevel object, in this case it checks a Django setting to
known if it should return DEBUG intead of the default log level.

The authentic2.logger module must be imported before using the logging
module so that all created logger use our new class. To achieve that
import is done in authentic2-ctl and wsgi.py which are the entrypoints
for authentic2.

History

#1 Updated by Benjamin Dauvergne about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Nouveau to Résolu (à déployer)

#2 Updated by Benjamin Dauvergne over 3 years ago

  • Status changed from Résolu (à déployer) to Solution déployée

#3 Updated by Benjamin Dauvergne over 1 year ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF