Initalized git repo, added basic files and a logger

This commit is contained in:
Stanislas Jouffroy 2024-02-11 00:43:10 +01:00
parent 50835e924c
commit aa155b2748
10 changed files with 479 additions and 0 deletions

13
resa_padel/config.py Normal file
View file

@ -0,0 +1,13 @@
import logging.config
import os
import yaml
def init_log_config():
root_dir = os.path.realpath(os.path.dirname(__file__))
logging_file = root_dir + "/logging.yaml"
with open(logging_file, "r") as f:
logging_config = yaml.safe_load(f.read())
logging.config.dictConfig(logging_config)