def log(self, level, message, new_line=True):
        if new_line:
            message = "%s\n" % message
        handlers = self._handlers
        if not handlers:
            self._log_lines.append((level, message))
        else:
            for handler in handlers:
                handler.log(level, message)