yet a other wrapper for python2-print ;-)
- error, warning, info(2), debug(2) (default)
- error, warning, info(2)
- error, warning
- error
- (nothing)
from custom_py_logger import logger
class MyClass:
def __init__(self):
self.log = logger.Log(self.__class__.__name__, level=1)
self.log.debug("hello") #
self.log.info2("hello") # 18:41:04 MyClass [ii] hello