Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/settings/production.py
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
SECRET_KEY = private_conf["secret_key"] | SECRET_KEY = private_conf["secret_key"] | ||||
# https://docs.djangoproject.com/en/1.10/ref/settings/#logging | # https://docs.djangoproject.com/en/1.10/ref/settings/#logging | ||||
LOGGING = { | LOGGING = { | ||||
"version": 1, | "version": 1, | ||||
"disable_existing_loggers": False, | "disable_existing_loggers": False, | ||||
"formatters": { | "formatters": { | ||||
"standard": { | "standard": { | ||||
"format": "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s", # noqa | "format": "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s", | ||||
"datefmt": "%d/%b/%Y %H:%M:%S", | "datefmt": "%d/%b/%Y %H:%M:%S", | ||||
}, | }, | ||||
}, | }, | ||||
"handlers": { | "handlers": { | ||||
"console": { | "console": { | ||||
"level": "INFO", | "level": "INFO", | ||||
"class": "logging.StreamHandler", | "class": "logging.StreamHandler", | ||||
"formatter": "standard", | "formatter": "standard", | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |