I want to see the logs of Retrofit request body I implemented below code,with below code I am unable o get logs
public static Retrofit getClient(String baseUrl) {
Level logLevel = Level.BODY;
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
interceptor.level(logLevel);
new OkHttpClient.Builder()
.addInterceptor(interceptor)
.build();
if (retrofit==null) {
retrofit = new Retrofit.Builder()
.baseUrl(baseUrl)
.addConverterFactory(GsonConverterFactory.create())
.build();
}
return retrofit;
}
please help me in this case, Even I allowed logging in developer options,Still is not working