Initial commit

This commit is contained in:
Markus Zimmerberger
2024-02-13 15:50:44 +01:00
commit c66dccfaaa
20 changed files with 6707 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import logging.config
from pythonjsonlogger import jsonlogger
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"json": {
"format": "%(asctime)s %(levelname)s %(message)s",
"class": "pythonjsonlogger.jsonlogger.JsonFormatter",
}
},
"handlers": {
"stdout": {
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
"formatter": "json",
}
},
"loggers": {"": {"handlers": ["stdout"], "level": "DEBUG"}},
}
logging.config.dictConfig(LOGGING)