Lines Matching refs:self
16 def __init__(self, threshold=WARN):
17 self.threshold = threshold
19 def _log(self, level, msg, args):
23 if level >= self.threshold:
39 def log(self, level, msg, *args):
40 self._log(level, msg, args)
42 def debug(self, msg, *args):
43 self._log(DEBUG, msg, args)
45 def info(self, msg, *args):
46 self._log(INFO, msg, args)
48 def warn(self, msg, *args):
49 self._log(WARN, msg, args)
51 def error(self, msg, *args):
52 self._log(ERROR, msg, args)
54 def fatal(self, msg, *args):
55 self._log(FATAL, msg, args)