Django Toolbar Logging

In Django 1.3, I use logging to process logs and save them to .log files or print them to the console, and everything works as expected.

I also have django-debug-toolbar installed, but no messages are displayed in the logging panel.

Does anyone know which logging handler serves the django-debug-toolbar logging panel?


Edit

Here is an excerpt from my settings.py

 LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { ... }, ... }, 'handlers': { 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' }, ... 'debug': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': 'logs/debug.log', 'formatter': 'standard', }, ... }, 'loggers': { ... ... 'myapp.debug': { # <- THIS i the logger I would like to see in DDT 'handlers': ['debug','console'], 'level': 'DEBUG', ... }, }, } 
+6
source share
1 answer

This is a reported bug in the django-debug-toolbar on GitHub .

A workaround is mentioned in the thread of problems.

+2
source

Source: https://habr.com/ru/post/908157/


All Articles