ihsanbal / LoggingInterceptor

An OkHttp interceptor which has pretty logger for request and response. +Mock support
MIT License
1.33k stars 112 forks source link

Fix #46 issue when pretty formatted logs prints badly. #49

Closed mrArtCore closed 6 years ago

mrArtCore commented 6 years ago

Fix #46 issue when pretty formatted logs prints badly. It happens because of Android Studio changes since 3.0 release.

Fix with some sort of hack. Modified original tag value by playing with 'dots'. Idea of hack is from @liangchenhe55. He proposed it here https://github.com/orhanobut/logger/issues/203. Also I don't sure about API of my fix, and don't like static fields in I class. But behaviour logs printing already fixed in AS v3.2 canary, as I know. So as temporary workaround I think it will be good enough.