forked from Hay1tsme/artemis
Centralized logging
Allows us to extend the logging infrastructure, e.g. by adding Loki/Discord webhooks to the mix.
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import datetime
|
||||
from typing import Dict
|
||||
import logging
|
||||
import urllib.parse
|
||||
from threading import Thread
|
||||
|
||||
import core.logger
|
||||
from core.config import CoreConfig
|
||||
from titles.diva.config import DivaConfig
|
||||
from titles.diva.const import DivaConstants
|
||||
@ -16,7 +16,7 @@ class DivaBase:
|
||||
self.game_config = game_cfg
|
||||
self.data = DivaData(cfg) # Database
|
||||
self.date_time_format = "%Y-%m-%d %H:%M:%S"
|
||||
self.logger = logging.getLogger("diva")
|
||||
self.logger = core.logger.create_logger("CXB", cfg, game_cfg.server.loglevel)
|
||||
self.game = DivaConstants.GAME_CODE
|
||||
self.version = DivaConstants.VER_PROJECT_DIVA_ARCADE_FUTURE_TONE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user