Improved testing and service providing
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from abc import abstractmethod
|
||||
from typing import Optional
|
||||
|
||||
from sh_edraft.configuration.application_host import ApplicationHost
|
||||
from sh_edraft.logging.model.log_settings import LoggingSettings
|
||||
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
|
||||
|
||||
@@ -10,12 +9,11 @@ from sh_edraft.time.model.time_format_settings import TimeFormatSettings
|
||||
class LoggerBase(ServiceBase):
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self):
|
||||
def __init__(self, logging_settings: LoggingSettings, time_format: TimeFormatSettings):
|
||||
ServiceBase.__init__(self)
|
||||
|
||||
self._log_settings: Optional[LoggingSettings] = None
|
||||
self._time_format_settings: Optional[TimeFormatSettings] = None
|
||||
self._app_host: Optional[ApplicationHost] = None
|
||||
self._log_settings: LoggingSettings = logging_settings
|
||||
self._time_format_settings: TimeFormatSettings = time_format
|
||||
|
||||
@abstractmethod
|
||||
def header(self, string: str): pass
|
||||
|
Reference in New Issue
Block a user