public static void logProtocolMessage(final XMLObject object) {
        if (protocolMessageLog.isDebugEnabled()) {
            try {
                val requestXml = SerializeSupport.nodeToString(XMLObjectSupport.marshall(object));
                protocolMessageLog.debug(requestXml);
            } catch (final MarshallingException e) {
                LOGGER.error(e.getMessage(), e);
            }
        }
    }
<p>logProtocolMessage.</p>

@param object a {@link XMLObject} object
pac4j-saml/src/main/java/org/pac4j/saml/util/SAML2Utils.java