Adjust logging configuration.

        :param context:
            The guacamole context object.

        This method uses the context and the results of early argument parsing
        to adjust the configuration of the logging subsystem. In practice the
        values passed to ``--log-level`` and ``--trace`` are applied.

def adjust_logging(self, context):
        """
        Adjust logging configuration.

        :param context:
            The guacamole context object.

        This method uses the context and the results of early argument parsing
        to adjust the configuration of the logging subsystem. In practice the
        values passed to ``--log-level`` and ``--trace`` are applied.
        """
        if context.early_args.log_level:
            log_level = context.early_args.log_level
            logging.getLogger("").setLevel(log_level)
        for name in context.early_args.trace:
            logging.getLogger(name).setLevel(logging.DEBUG)
            _logger.info("Enabled tracing on logger %r", name)