private static void writeLoggingProperties(final XmlSerializer xmlw, final LoggingProperties logging)
            throws IllegalArgumentException, IllegalStateException, IOException {
    """
	Writes the given logging properties to the XMLStreamWriter.
	
	@param xmlw
	the XMLStreamWriter to write to.
	@param cors
	the logging properties to be written.
	@throws IOException
	if there is an error writing the service properties.
	@throws IllegalStateException
	if there is an error writing the service properties.
	@throws IllegalArgumentException
	if there is an error writing the service properties.
    """
        Utility.assertNotNull("logging.LogOperationTypes", logging.getLogOperationTypes());

        // Logging
        xmlw.startTag(Constants.EMPTY_STRING, Constants.AnalyticsConstants.LOGGING_ELEMENT);

        // Version
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.VERSION_ELEMENT, logging.getVersion());

        // Delete
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.DELETE_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.DELETE) ? Constants.TRUE : Constants.FALSE);

        // Read
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.READ_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.READ) ? Constants.TRUE : Constants.FALSE);

        // Write
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.WRITE_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.WRITE) ? Constants.TRUE : Constants.FALSE);

        // Retention Policy
        writeRetentionPolicy(xmlw, logging.getRetentionIntervalInDays());

        // end Logging
        xmlw.endTag(Constants.EMPTY_STRING, Constants.AnalyticsConstants.LOGGING_ELEMENT);
    }
private static void writeLoggingProperties(final XmlSerializer xmlw, final LoggingProperties logging)
            throws IllegalArgumentException, IllegalStateException, IOException {
        Utility.assertNotNull("logging.LogOperationTypes", logging.getLogOperationTypes());

        // Logging
        xmlw.startTag(Constants.EMPTY_STRING, Constants.AnalyticsConstants.LOGGING_ELEMENT);

        // Version
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.VERSION_ELEMENT, logging.getVersion());

        // Delete
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.DELETE_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.DELETE) ? Constants.TRUE : Constants.FALSE);

        // Read
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.READ_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.READ) ? Constants.TRUE : Constants.FALSE);

        // Write
        Utility.serializeElement(xmlw, Constants.AnalyticsConstants.WRITE_ELEMENT, logging.getLogOperationTypes()
                .contains(LoggingOperations.WRITE) ? Constants.TRUE : Constants.FALSE);

        // Retention Policy
        writeRetentionPolicy(xmlw, logging.getRetentionIntervalInDays());

        // end Logging
        xmlw.endTag(Constants.EMPTY_STRING, Constants.AnalyticsConstants.LOGGING_ELEMENT);
    }
private static void writeLoggingProperties ( final XmlSerializer xmlw , final LoggingProperties logging ) throws IllegalArgumentException , IllegalStateException , IOException { Utility . assertNotNull ( "logging.LogOperationTypes" , logging . getLogOperationTypes ( ) ) ; // Logging xmlw . startTag ( Constants . EMPTY_STRING , Constants . AnalyticsConstants . LOGGING_ELEMENT ) ; // Version Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . VERSION_ELEMENT , logging . getVersion ( ) ) ; // Delete Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . DELETE_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . DELETE ) ? Constants . TRUE : Constants . FALSE ) ; // Read Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . READ_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . READ ) ? Constants . TRUE : Constants . FALSE ) ; // Write Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . WRITE_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . WRITE ) ? Constants . TRUE : Constants . FALSE ) ; // Retention Policy writeRetentionPolicy ( xmlw , logging . getRetentionIntervalInDays ( ) ) ; // end Logging xmlw . endTag ( Constants . EMPTY_STRING , Constants . AnalyticsConstants . LOGGING_ELEMENT ) ; }
Writes the given logging properties to the XMLStreamWriter.

@param xmlw
the XMLStreamWriter to write to.
@param cors
the logging properties to be written.
@throws IOException
if there is an error writing the service properties.
@throws IllegalStateException
if there is an error writing the service properties.
@throws IllegalArgumentException
if there is an error writing the service properties.
Writes the given logging properties to the XMLStreamWriter .