Created
September 9, 2015 08:26
-
-
Save marcoberri/ddfc87a8bd0bcb3b90c3 to your computer and use it in GitHub Desktop.
Retrofint and Log4J
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ExampleLog4J implements RestAdapter.Log { | |
| private static final Logger logger = logger.getLogger(ExampleLogger.class) | |
| ExampleLog4J(){ } | |
| @Override | |
| public void log(String message) { | |
| log.info("Retrofit# "+message); | |
| } | |
| } | |
| new RestAdapter.Builder().setLog(new ExampleLog4J())... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment