38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
from abc import abstractmethod
|
|
|
|
from sh_edraft.configuration import ApplicationHost
|
|
from sh_edraft.logging.model.logging_settings import LoggingSettings
|
|
from sh_edraft.service.base.service_base import ServiceBase
|
|
from sh_edraft.time.model.time_format_settings import TimeFormatSettings
|
|
|
|
|
|
class LoggerBase(ServiceBase):
|
|
|
|
@abstractmethod
|
|
def __init__(self, logging_settings: LoggingSettings, time_format: TimeFormatSettings):
|
|
ServiceBase.__init__(self)
|
|
|
|
self._log_settings: LoggingSettings = logging_settings
|
|
self._time_format_settings: TimeFormatSettings = time_format
|
|
|
|
@abstractmethod
|
|
def header(self, string: str): pass
|
|
|
|
@abstractmethod
|
|
def trace(self, name: str, message: str): pass
|
|
|
|
@abstractmethod
|
|
def debug(self, name: str, message: str): pass
|
|
|
|
@abstractmethod
|
|
def info(self, name: str, message: str): pass
|
|
|
|
@abstractmethod
|
|
def warn(self, name: str, message: str): pass
|
|
|
|
@abstractmethod
|
|
def error(self, name: str, message: str, ex: Exception = None): pass
|
|
|
|
@abstractmethod
|
|
def fatal(self, name: str, message: str, ex: Exception = None): pass
|