Stage 01 - bootstrap v2 stable start
This commit is contained in:
10
app/src/bootstrap/logging.py
Normal file
10
app/src/bootstrap/logging.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
def setup_logging(log_level: str) -> None:
|
||||
logging.basicConfig(
|
||||
level=getattr(logging, log_level.upper(), logging.INFO),
|
||||
format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",
|
||||
)
|
||||
Reference in New Issue
Block a user