0👍
'django.request': {
'handlers': ['console', 'file', '**reqlog**'],
'level': 'INFO',
'propagate': False}
after adding reqlog to django request handlers, it works for me.
-1👍
import logging.config
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'console': {
'format': '%(name)-12s %(levelname)-8s %(message)s'
}
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'console'
},
},
'loggers': {
'': {
'level': 'DEBUG',
'handlers': ['console']
}
}
})
#Try This
- [Django]-How to modify django-ckeditor inline styles?
- [Django]-Python logging decorator for views
- [Django]-Django Tastypie User Objects Only Authorization
- [Django]-Multi-table inheritance in the admin view
Source:stackexchange.com