# IN BASE.PY
from django.utils.log import DEFAULT_LOGGING
# start from default values -- so that they can be overriden later
# https://stackoverflow.com/a/25508761
LOGGING = DEFAULT_LOGGING
# IN PROD.PY
# default logging doesn't log to console with DEBUG=False
# see https://github.com/django/django/blob/main/django/utils/log.py
# override i.e. always log to console
LOGGING["handlers"]["console"] = {
"class": "logging.StreamHandler",
}
to prod.py - otherwise exceptions on prod don't have any info....! is this normal/should I default to this i.e. add it here?
I always end up adding
to prod.py - otherwise exceptions on prod don't have any info....! is this normal/should I default to this i.e. add it here?