Skip to content

Commit

Permalink
add logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
biplovbhandari committed Jul 26, 2019
1 parent d10d1fb commit 5279fdd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ static/*
# Exception to the rule
!static/README.md
landcoverportal/settings.py
debug.log

# Eclipse project files
# ======================
Expand Down
19 changes: 19 additions & 0 deletions landcoverportal/settings_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,25 @@
'oauth2client.contrib.django_util'
)

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'WARNING',#'DEBUG',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, 'debug.log')
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'WARNING',
'propagate': True,
},
},
}

LANGUAGES = (
## Customize this
('en', gettext('en')),
Expand Down

0 comments on commit 5279fdd

Please sign in to comment.