Update nastaveni logu

This commit is contained in:
Tomas Gavenciak 2015-05-26 14:14:52 +02:00
parent 7ad8a8f88b
commit 57315766d0

View file

@ -31,3 +31,21 @@ DATABASES = {
},
}
import os
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}