Initial commit: Nat20 Notes — TTRPG session transcription & summarization
This commit is contained in:
18
backend/app/logging_config.py
Normal file
18
backend/app/logging_config.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import logging
|
||||
import sys
|
||||
|
||||
|
||||
def setup_logging():
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s %(levelname)-8s %(name)s: %(message)s",
|
||||
datefmt="%Y-%m-%d %H:%M:%S",
|
||||
stream=sys.stdout,
|
||||
)
|
||||
# quiet down noisy libraries so pipeline logs are easy to spot
|
||||
for noisy in ("httpx", "urllib3", "pyannote"):
|
||||
logging.getLogger(noisy).setLevel(logging.WARNING)
|
||||
|
||||
|
||||
def get_logger(name: str) -> logging.Logger:
|
||||
return logging.getLogger(name)
|
||||
Reference in New Issue
Block a user