Question: Retrofit does not print log. Log level set to verbose. Tried HttpLoggingInterceptor too.

using these gradles

```
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'

```

**Code**

```
OkHttpClient httpClient = new OkHttpClient();
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor();
httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
httpClient.newBuilder().connectTimeout(6, TimeUnit.MINUTES)
                .readTimeout(6, TimeUnit.MINUTES)
                .writeTimeout(6, TimeUnit.MINUTES)
                .addInterceptor(new Interceptor() {
                    @Override
                    public Response intercept(Chain chain) throws IOException {
                        Request original = chain.request();
                        Request.Builder requestBuilder = original.newBuilder()
                                .header("Content-Type", "application/json")
                                .header("Authorization", "aDRF@F#JG_a34-n3d")
                                .method(original.method(), original.body());
                        Request request = requestBuilder.build();
                        return chain.proceed(request);
                    }
                })
    .addInterceptor(httpLoggingInterceptor);

return httpClient;

```

Answer: 
On some devices (emulator or real Android ones) logging is by default disabled. You need to enable this option to see the logs.
Tried this with Meizu M3s.

1. Go to **Developer Options**.
2. Find **Performance optimization**.
3. Find **Advanced logging**.
4. Allow all.

Please note that for different devices the steps might be slightly different.

[![enter image description here](https://i.stack.imgur.com/5IlzQ.jpg)](https://i.stack.imgur.com/5IlzQ.jpg)
[![enter image description here](https://i.stack.imgur.com/GerNr.jpg)](https://i.stack.imgur.com/GerNr.jpg)
I had a problem with not seeing OkHttp network logs when Log buffer in Developer options on my emulator was set to Off, so after I changed to any other value, for example, 16m and tried again, it displayed logs correctly.