Lines Matching refs:level
19 def _log(self, level, msg, args):
20 if level not in (DEBUG, INFO, WARN, ERROR, FATAL):
21 raise ValueError('%s wrong log level' % str(level))
23 if level >= self.threshold:
26 if level in (WARN, ERROR, FATAL):
33 def log(self, level, msg, *args):
34 self._log(level, msg, args)
59 def set_threshold(level):
62 _global_log.threshold = level