Changeset - 26c9cb5ee251
[Not reviewed]
0 1 0
Brett Smith - 5 years ago 2018-10-05 14:45:02
brettcsmith@brettcsmith.org
settings: Add a console logger.
1 file changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -201,5 +201,3 @@ INSTALLED_APPS = [
 

	
 
# A sample logging configuration. The only tangible logging
 
# performed by this configuration is to send an email to
 
# the site admins on every HTTP 500 error when DEBUG=False.
 
# A sample logging configuration.
 
# See http://docs.djangoproject.com/en/dev/topics/logging for
...
 
@@ -215,2 +213,6 @@ LOGGING = {
 
    "handlers": {
 
        'console': {
 
            'level': os.environ.get('DJANGO_LOG_LEVEL', 'WARNING'),
 
            'class': 'logging.StreamHandler',
 
        },
 
        "mail_admins": {
...
 
@@ -222,2 +224,6 @@ LOGGING = {
 
    "loggers": {
 
        'django': {
 
            'handlers': ['console'],
 
            'propagate': True,
 
        },
 
        "django.request": {
0 comments (0 inline, 0 general)