Socket logging with project specific adaptions

This commit is contained in:
Dirk Alders 2024-10-10 09:42:46 +02:00
parent 0de3193a0a
commit 6b110b61b8

View File

@ -182,7 +182,7 @@ if SECRET_KEY is None:
# Logging Configuration # Logging Configuration
# #
ROOT_LOGGER_NAME = 'apps' ROOT_LOGGER_NAME = os.path.basename(os.path.dirname(__file__))
default_handler = ['socket'] if DEBUG else ['console'] default_handler = ['socket'] if DEBUG else ['console']
@ -216,7 +216,7 @@ File "%(pathname)s", line %(lineno)d, in %(funcName)s
}, },
'socket': { 'socket': {
'level': 'DEBUG', 'level': 'DEBUG',
'class': 'piki.settings.DjangoSocketHandler', 'class': f'{ROOT_LOGGER_NAME}.settings.DjangoSocketHandler',
'host': '127.0.0.1', 'host': '127.0.0.1',
'port': 19996, 'port': 19996,
}, },