I have written a simple django LOGGING in my settings.py and I excepted that to log all error with a traceback in my file. But it doesn't and it just logs errors and everything in one line, but tracebacks are logged into the console. here is my LOGGING:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'simple': {
'format': '{levelname} {asctime} {name} {module}.{funcName}:{lineno} {message}',
'style': '{',
},
},
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': 'logs/debug.log',
'formatter': 'simple'
},
},
'loggers': {
'': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': False,
},
},
}
can anybody help me to understand why and what to do? thanks.