LoggerRt (String category) { final Logger logger = Logger.getLogger(category); return new LoggerRt() { @Override public void info(@Nullable String message, @Nullable Throwable t) { logger.log(Level.INFO, message, t); } @Override public void warn(@Nullable String message, @Nullable Throwable t) { logger.log(Level.WARNING, message, t); } @Override public void error(@Nullable String message, @Nullable Throwable t) { logger.log(Level.SEVERE, message, t); } }; }