private void logHeaders(IApimanLogger logger, final HeaderMap headers, final HttpDirection direction, final String endpoint) {
	    final StringBuilder sb = new StringBuilder();
        sb.append(String.format("Logging %d %s headers for %s", headers.size(), direction.getDescription(), endpoint)); //$NON-NLS-1$
        final Set<String> sortedKeys = new TreeSet<>(headers.keySet());
        for (String key : sortedKeys) {
            for (Entry<String, String> pair : headers.getAllEntries(key)) {
                sb.append(String.format("\r\nKey : %s, Value : %s", pair.getKey(), pair.getValue())); //$NON-NLS-1$
            }
        }
        logger.info(sb.toString());
	}
Logs the given headers to standard output.
@param logger 
@param headers
@param direction
@param endpoint
plugins/log-policy/src/main/java/io/apiman/plugins/log_policy/LogHeadersPolicy.java