diff options
-rw-r--r-- | markdown_link_style/logging.py | 16 | ||||
-rw-r--r-- | tests/test_mdl_style.py | 21 |
2 files changed, 29 insertions, 8 deletions
diff --git a/markdown_link_style/logging.py b/markdown_link_style/logging.py index 7a1c143..055cd4e 100644 --- a/markdown_link_style/logging.py +++ b/markdown_link_style/logging.py @@ -28,23 +28,23 @@ class MDLSLogger(object): def __init__(self, name): self.logger = logging.getLogger(name) - def debug(msg, *args, **kwargs): + def debug(self, msg, *args, **kwargs): self.logger.debug(msg, *args, **kwargs) - def info(msg, *args, **kwargs): + def info(self, msg, *args, **kwargs): self.logger.info(msg, *args, **kwargs) - def warning(msg, *args, **kwargs): + def warning(self, msg, *args, **kwargs): self.logger.warning(msg, *args, **kwargs) - def error(msg, *args, **kwargs): + def error(self, msg, *args, **kwargs): self.logger.error(msg, *args, **kwargs) - def critical(msg, *args, **kwargs): + def critical(self, msg, *args, **kwargs): self.logger.critical(msg, *args, **kwargs) - def log(msg, *args, **kwargs): + def log(self, msg, *args, **kwargs): self.logger.log(msg, *args, **kwargs) - def exception(msg, *args, **kwargs): - self.logger.exception(msg, *args, **kwargs) + def exception(self, msg, *args, **kwargs): + self.logger.exception(msg, *args, **kwargs)
\ No newline at end of file diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py index ce35c03..103623e 100644 --- a/tests/test_mdl_style.py +++ b/tests/test_mdl_style.py @@ -145,3 +145,24 @@ class TestLSRendererFN(object): def teardown(self): pass + + +class TestMDLSLogger(object): + """Test class for mdl_style.MDLSLogger footnote link style. + + """ + + def setup(self): + self.logger = MDLSLogger('DebugTest') + + def test_debug(self): + self.logger.debug('DEBUG::MSG') + + def test_info(self): + self.logger.info('INFO::MSG') + + def test_warning(self): + self.logger.warning('WARNING::MSG') + + def teardown(self): + pass
\ No newline at end of file |