Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django debug toolbar logging

In Django 1.3 I'm using logging for handling logs and save them to .log files or print them in console, and everything works as expected.

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

Somebody knows which logging handler serves the django-debug-toolbar logging pane?


Edit

Here is an excerpt of 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',
            ...
         },
    },
}
like image 928
dolma33 Avatar asked Feb 10 '12 15:02

dolma33


1 Answers

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

A temporary workaround is mentioned in the issue thread.

like image 155
Jonatan Littke Avatar answered Oct 17 '22 00:10

Jonatan Littke