Skip to content

Commit

Permalink
Merge pull request #163 from UCF/hf-logging
Browse files Browse the repository at this point in the history
Updated logging configuration
  • Loading branch information
jmbarne3 authored Feb 13, 2024
2 parents 08c8e7e + 0dcd1ff commit 1d97bbc
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions settings_local.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

DEBUG = True
LOCAL_DEBUG = False

LOG_LEVEL = 'WARNING'

ADMINS = (
#('Your Name', 'your_email@domain.com'),
)
Expand Down Expand Up @@ -173,37 +176,30 @@
'filters': ['require_debug_true']
},
'file': {
'level': 'INFO',
'class': 'logging.FileHandler',
'level': LOG_LEVEL,
'class': 'logging.handlers.RotatingFileHandler',
'filename': os.path.join(BASE_DIR, 'logs', 'application.log'),
'formatter': 'talkative',
'filters': ['require_debug_false']
'filters': ['require_debug_false'],
'maxBytes': 1024*1024*5,
'backupCount': 5
}
},
'loggers': {
'core': {
'default': {
'handlers': ['console', 'file'],
'propogate': True,
'level': 'WARNING'
'propagate': True,
'level': LOG_LEVEL
},
'django': {
'handlers': ['console', 'file'],
'propogate': True,
'level': 'WARNING'
},
'events': {
'handlers': ['console', 'file'],
'propogate': True,
'level': 'WARNING'
},
'profiles': {
'handlers': ['console', 'file'],
'propogate': True,
'level': 'WARNING'
'propagate': True,
'level': LOG_LEVEL
},
'util': {
'manager': {
'handlers': ['console', 'file'],
'level': 'WARNING'
'propagate': True,
'level': LOG_LEVEL
}
}
}
Expand Down

0 comments on commit 1d97bbc

Please sign in to comment.