Skip to content

Commit

Permalink
fix formatting of logging conf
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Oct 18, 2023
1 parent 15d256f commit 98025ce
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions coldfront/config/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {},
'formatters': {
'key-events': {
"()": "django.utils.log.ServerFormatter",
"format": "[{server_time}] {levelname} {message}",
"style": "{",
}
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
Expand All @@ -27,13 +33,14 @@
'key-events': {
'class': 'logging.handlers.TimedRotatingFileHandler',
'filename': 'logs/key-events.log',
'when': 'D',
'formatter': 'key-events',
},
# 'file': {
# 'class': 'logging.FileHandler',
# 'filename': '/tmp/debug.log',
# },
},
'formatters': {},
'loggers': {
'django_auth_ldap': {
'level': 'INFO',
Expand All @@ -56,7 +63,7 @@
'handlers': ['console'],
'level': 'INFO',
},
'project': {
'coldfront.core.project': {
'handlers': ['key-events'],
'level': 'INFO',
}
Expand Down

0 comments on commit 98025ce

Please sign in to comment.