diff --git a/procat2/settings.py b/procat2/settings.py index b83ca86..31981ab 100644 --- a/procat2/settings.py +++ b/procat2/settings.py @@ -26,9 +26,42 @@ SECRET_KEY = '-fawvl=exzaq&(%@t2!i!e1pvor@2%j60$ito#5qtiq-8zwmki' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'handlers': { + 'file': { + 'level': 'DEBUG', + 'class': 'logging.FileHandler', + 'filename': 'debug.log', + }, + 'console': { + 'class': 'logging.StreamHandler', + }, + }, + 'loggers': { + 'procat2': { + 'handlers': ['console', 'file'], + 'level': 'DEBUG', + #'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'), + 'propagate': True, + }, + 'lazysignup': { + 'handlers': ['console', 'file'], + 'level': 'DEBUG', + #'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'), + 'propagate': True, + }, + 'django': { + 'handlers': ['console', 'file'], + #'level': 'DEBUG', + 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'), + 'propagate': True, + }, + }, +} # Application definition - INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth',