APISonar


retrofit.RestAdapter.RestAdapter.Log

> retrofit > RestAdapter > RestAdapter > Log
retrofit APIs RestAdapter APIs RestAdapter APIs Log APIs

Example 1
public void onCreate() {
        super.onCreate();
        serverAPI = new RestAdapter.Builder()
            .setEndpoint(ServerAPI.ENDPOINT)
            .setLogLevel(RestAdapter.LogLevel.FULL)
            .setLog(new RestAdapter.Log() {
                @Override
                public void log(String message) {
                    Log.v("Retrofit", message);
                }
            })
            .build().create(ServerAPI.class);
    }