Logger (String s) { return new Logger() { @Override public boolean isDebugEnabled() { return myConsoleWrapper.isDebugEnabled(); } @Override public void debug(String s) { myConsoleWrapper.debug(s); } @Override public void debug(String s, Throwable throwable) { myConsoleWrapper.debug(s, throwable); } @Override public boolean isWarnEnabled() { return myConsoleWrapper.isWarnEnabled(); } @Override public void warn(String s) { myConsoleWrapper.warn(s); } @Override public void warn(String s, Throwable throwable) { myConsoleWrapper.debug(s, throwable); } }; }