feat: add LoggerInterface
This commit is contained in:
parent
ce6208af44
commit
738fc9ba8e
1 changed files with 18 additions and 1 deletions
|
|
@ -117,7 +117,24 @@ class PlainFileHandler(logging.FileHandler):
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
|
|
||||||
def get_logger(name=None, level=None):
|
class LoggerInterface:
|
||||||
|
def info(self, msg, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def warning(self, msg, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def error(self, msg, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def critical(self, msg, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def debug(self, msg, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def get_logger(name=None, level=None) -> LoggerInterface:
|
||||||
"""Get a configured structlog logger.
|
"""Get a configured structlog logger.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue