Configure logging for the application.

        :param context:
            The guacamole context object.

        This method attaches a :py:class:logging.StreamHandler` with a
        subclass of :py:class:`logging.Formatter` to the root logger. The
        specific subclass is :class:`ANSIFormatter` and it adds basic ANSI
        formatting (colors and some styles) to logging messages so that they
        stand out from normal output.

def configure_logging(self, context):
        """
        Configure logging for the application.

        :param context:
            The guacamole context object.

        This method attaches a :py:class:logging.StreamHandler` with a
        subclass of :py:class:`logging.Formatter` to the root logger. The
        specific subclass is :class:`ANSIFormatter` and it adds basic ANSI
        formatting (colors and some styles) to logging messages so that they
        stand out from normal output.
        """
        fmt = "%(name)-12s: %(levelname)-8s %(message)s"
        formatter = ANSIFormatter(context, fmt)
        handler = logging.StreamHandler()
        handler.setFormatter(formatter)
        logging.root.addHandler(handler)