mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
feat: logging init
This commit is contained in:
6
main.py
6
main.py
@ -6,10 +6,10 @@ from src.configuration import EnvConf, LogConf, singleton
|
||||
|
||||
@singleton
|
||||
class Main():
|
||||
env_conf: EnvConf
|
||||
|
||||
@inject
|
||||
def __init__(self, log_config: LogConf, env_conf: EnvConf) -> None:
|
||||
self.env_conf=env_conf
|
||||
def __init__(self, logConf: LogConf) -> None:
|
||||
logging.basicConfig(level=logConf.level,filename=logConf.filename,format="%(asctime)s %(levelname)s %(message)s")
|
||||
|
||||
def run(self):
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user