Skip to content

Commit

Permalink
Add logging config to production.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hironsan committed Sep 16, 2022
1 parent 8c16d84 commit a5f865c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions backend/config/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
from .base import * # noqa: F401,F403

DEBUG = False

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"standard": {
"format": "[%(asctime)s] [%(process)d] [%(levelname)s] [%(name)s::%(funcName)s::%(lineno)d] %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S %z",
}
},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "standard",
},
},
"root": {
"handlers": ["console"],
"level": "INFO",
},
"loggers": {
"django": {
"handlers": ["console"],
"level": "INFO",
},
},
}

0 comments on commit a5f865c

Please sign in to comment.