I have setup Logging inside my settings.py, and I want to know if it's possible to add to the error log line - Which user experienced the error and a timestamp for the issue. Is this possible?
Current code
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': 'debug.log',
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
}