Last active
February 4, 2018 17:36
-
-
Save mohsenoid/fc50c95e6901db61824a79b0008d4285 to your computer and use it in GitHub Desktop.
Sample ClientModule HttpLoggingInterceptor https://hackernoon.com/yet-another-mvp-article-part-3-calling-apis-using-retrofit-23757f4eee05
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
@Singleton | |
@Provides | |
public HttpLoggingInterceptor provideHttpLoggingInterceptor() { | |
HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); | |
logging.setLevel(HttpLoggingInterceptor.Level.BODY); | |
return logging; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment