Files
artemis/titles/idac/base.py
beerpsi 994fa0d41e Centralized logging
Allows us to extend the logging infrastructure, e.g. by adding Loki/Discord webhooks to the mix.
2024-04-20 12:11:37 +00:00

17 lines
590 B
Python

import core.logger
from core.config import CoreConfig
from titles.idac.config import IDACConfig
from titles.idac.const import IDACConstants
from titles.idac.database import IDACData
class IDACBase:
def __init__(self, core_cfg: CoreConfig, game_cfg: IDACConfig) -> None:
self.core_cfg = core_cfg
self.game_config = game_cfg
self.game = IDACConstants.GAME_CODE
self.version = IDACConstants.VER_IDAC_SEASON_1
self.data = IDACData(core_cfg)
self.logger = self.logger = core.logger.create_logger("IDAC", core_cfg, game_cfg.server.loglevel)