sh_cpl/src_old/sh_edraft/logging/base/logger_base.py

32 lines
740 B
Python
Raw Normal View History

from abc import abstractmethod
from sh_edraft.service.base.service_base import ServiceBase
class LoggerBase(ServiceBase):
@abstractmethod
2020-11-26 11:20:21 +01:00
def __init__(self):
ServiceBase.__init__(self)
@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