LoggerWrapper<Integer> (final Logger log) { return new LoggerWrapper<>() { @Override public boolean isDebugEnabled() { return log.isDebugEnabled(); } @Override public void debug(String comment, Integer s) { if (isDebugEnabled()) { log.debug(comment + getValue(s)); } } @Override public void debug(String comment, String t) { if (isDebugEnabled()) { log.debug(comment + t); } } @Override public void debug(String comment, boolean t) { if (isDebugEnabled()) { log.debug(comment + t); } } }; }