use <code>logger.debug("Using charset {}", charset)</code> instead.