mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
feat: log
This commit is contained in:
3
main.py
3
main.py
@ -7,12 +7,11 @@ from src.configuration import EnvConf, LogConf, singleton
|
||||
@singleton
|
||||
class Main():
|
||||
env_conf: EnvConf
|
||||
|
||||
@inject
|
||||
def __init__(self, log_config: LogConf, env_conf: EnvConf, log_handler: LogHandler) -> None:
|
||||
self.env_conf=env_conf
|
||||
logging.basicConfig(
|
||||
handlers=[logging.StreamHandler()],
|
||||
handlers=[log_handler],
|
||||
level=log_config.level,
|
||||
datefmt=log_config.time_format,
|
||||
format='%(asctime)s %(message)s')
|
||||
|
||||
Reference in New Issue
Block a user