Log messages according to the logging level (0 is highest priority).

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(msg)