code: def log(self, msg, lvl = 0):
          '''Log messages according to the logging level (0 is highest priority).'''
          if self.log_level >= lvl:
              self.log_fn(msgf log(self, msg, lvl = 0):
          '''Log messages according to the logging level (0 is highest priority).'''
          if self.log_level >= lvl:
              self.log_fn(msg)
docs: Log messages according to the logging level (0 is highest priority).