All Projects → NightlyNexus → logging-retrofit

NightlyNexus / logging-retrofit

Licence: Apache-2.0 license
A Retrofit CallAdapter.Factory for transparent logging.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to logging-retrofit

Bilibili
基于ijkplayer+rxjava+retrofit,组件化思想,实现一个仿B站的Android客户端
Stars: ✭ 221 (+612.9%)
Mutual labels:  retrofit2
android-mvp-kotlin
使用kotlin实现Android MVP模式,使用了Dagger2、Retrofit、RxJava等
Stars: ✭ 14 (-54.84%)
Mutual labels:  retrofit2
AndroidStarterAlt
A sample View-based Android app using the MVP architecture. It uses Mosby, Dagger2, RxJava, retrofit, LoganSquare, requery, EventBus, Conductor.
Stars: ✭ 27 (-12.9%)
Mutual labels:  retrofit2
Retrofit Logansquare
A Converter implementation using LoganSquare JSON serialization for Retrofit 2.
Stars: ✭ 224 (+622.58%)
Mutual labels:  retrofit2
Pandaeye
一款基于 mvp+rxjava+retrofit+Picasso 的应用,内容来自知乎日报,网易新闻,咪咕视频。实现了新闻列表的磁盘缓存
Stars: ✭ 242 (+680.65%)
Mutual labels:  retrofit2
Pokedex
An application that uses Retrofit to consume the Pokeapi API, in addition to loading images with Glide.
Stars: ✭ 21 (-32.26%)
Mutual labels:  retrofit2
Mvvmframe
🏰 MVVMFrame for Android 是一个基于Google官方推出的Architecture Components dependencies(现在叫JetPack){ Lifecycle,LiveData,ViewModel,Room } 构建的快速开发框架。有了MVVMFrame的加持,从此构建一个MVVM模式的项目变得快捷简单。
Stars: ✭ 218 (+603.23%)
Mutual labels:  retrofit2
VideoPreLoading
Demo for video PreLoading/ PreCaching using ExoPlayer 2.13.3 in Android.
Stars: ✭ 61 (+96.77%)
Mutual labels:  retrofit2
Dagger Examples
Some dagger-android examples with Retrofit2, MVVM architecture, RxJava, (Java)
Stars: ✭ 242 (+680.65%)
Mutual labels:  retrofit2
stockwatcher
stockwatcher, a modern android development stack showcase
Stars: ✭ 62 (+100%)
Mutual labels:  retrofit2
Marvel
Marvel Characters Android Application Assigned by smava GmbH
Stars: ✭ 227 (+632.26%)
Mutual labels:  retrofit2
Coderfun
knowledge&girls,RxJava&Retrofit&DBFlow
Stars: ✭ 233 (+651.61%)
Mutual labels:  retrofit2
mvp-sample
Demonstrates how to implement MVP (Model View Presenter) pattern using Kotlin, RXJava, Retrofit, Dagger and DataBinding
Stars: ✭ 35 (+12.9%)
Mutual labels:  retrofit2
Wanandroid
WanAndroid客户端,项目基于 Material Design + MVP +dagger2 + RxJava + Retrofit + Glide + greendao 等架构进行设计实现,极力打造一款 优秀的玩Android https://www.wanandroid.com 客户端,是一个不错的Android应用开发学习参考项目
Stars: ✭ 223 (+619.35%)
Mutual labels:  retrofit2
nytclient-android
This sample app is created to demonstrate the usage of Android Architecture Components with MVVM architecture
Stars: ✭ 24 (-22.58%)
Mutual labels:  retrofit2
Movieguide Kotlin
Movie discovery app showcasing Kotlin, RxJava, Dagger2, MVP using Clean Architecture
Stars: ✭ 222 (+616.13%)
Mutual labels:  retrofit2
RxJavaKotlinSample
RxJava2 and Kotlin sample project
Stars: ✭ 13 (-58.06%)
Mutual labels:  retrofit2
Eva
Eva and Wall-e
Stars: ✭ 131 (+322.58%)
Mutual labels:  retrofit2
Hands-Chopping
MvpArms框架的练手demo,主要实现了Steam和杉果的每日优惠和游戏查找功能
Stars: ✭ 51 (+64.52%)
Mutual labels:  retrofit2
Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (-48.39%)
Mutual labels:  retrofit2

Logging-Retrofit

A Retrofit CallAdapter.Factory for transparent logging.

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>com.nightlynexus.logging-retrofit</groupId>
  <artifactId>logging</artifactId>
  <version>0.12.0</version>
</dependency>

or Gradle:

implementation 'com.nightlynexus.logging-retrofit:logging:0.12.0'

TODO: Snapshots of the development version are available in Sonatype's snapshots repository.

Usage

LoggingCallAdapterFactory.Logger logger = new LoggingCallAdapterFactory.Logger() {
  @Override public <T> void onResponse(Call<T> call, Response<T> response) {
    // Implement.
  }

  @Override public <T> void onFailure(Call<T> call, Throwable t) {
    // Implement.
  }
};
Retrofit retrofit = new Retrofit.Builder()
    // Add the LoggingCallAdapterFactory before other CallAdapters factories
    // to let it delegate and log all types of calls.
    .addCallAdapterFactory(new LoggingCallAdapterFactory(logger))
    ...
    .build();

License

Copyright 2017 Eric Cochran

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].