a gazillion things to implement cosmos db healthcheck

This commit is contained in:
Pablo Martin 2024-08-09 12:41:23 +02:00
parent 7af3b12c81
commit 91c79357f8
11 changed files with 421 additions and 15 deletions

15
anaxi/logging.py Normal file
View file

@ -0,0 +1,15 @@
import logging
def get_anaxi_logger(name: str) -> None:
logger = logging.getLogger(name)
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter(
fmt="%(asctime)s - [%(levelname)s] - %(filename)s - L%(lineno)d - %(message)s"
)
)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
return logger