How to configure logging to console + DDT?

Trying to get to work logging in the console and Django Debug Toolbar, but something not very successfully.

If you just do
logger.debug('XXXXX')
the entry appears in the DDT

If in settings this is the setting to put
LOGGING = {
 'version': 1,
 'disable_existing_loggers': False,
 'handlers': {
 'console': {
'level':'DEBUG',
'class':'logging.StreamHandler'
},
},
 'loggers': {
 ": {
 'handlers': ['console'],
 'level': 'DEBUG',
},
},
}


It appears in the console and it disappears from the DDT.

How to do and here and there?
June 10th 19 at 15:13
0 answer

Find more questions by tags Django