set log format

This commit is contained in:
Oscar Krause 2024-06-21 18:59:23 +02:00
parent c9ac915055
commit 35fc5ea6b0

View File

@ -91,7 +91,7 @@ app.add_middleware(
# Logging
LOG_LEVEL = logging.DEBUG if DEBUG else logging.INFO
logging.basicConfig()
logging.basicConfig(format='[{levelname:^7}] [{module:^15}] {message}', style='{')
logger = logging.getLogger(__name__)
logger.setLevel(LOG_LEVEL)
logging.getLogger('util').setLevel(LOG_LEVEL)