Configure the logging framework.

def setup_logging(self):
        """
        Configure the logging framework.
        """
        if self.config.debug:
            util.setup_logging(level=logging.DEBUG)
            util.activate_debug_shell_on_signal()
        else:
            util.setup_logging(level=logging.INFO)