a gazillion things to implement cosmos db healthcheck
This commit is contained in:
parent
7af3b12c81
commit
91c79357f8
11 changed files with 421 additions and 15 deletions
15
anaxi/logging.py
Normal file
15
anaxi/logging.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue