As the title mentions, how do we disable okhttp3.internal.platform.Platform.log
for any third party dependency in this case might be PubNub. Currently our log files are getting filled up with following text
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Date: Fri, 30 Aug 2019 20:40:54 GMT
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Content-Type: text/javascript; charset="UTF-8"
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Content-Length: 30
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Connection: keep-alive
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Cache-Control: no-cache
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Access-Control-Allow-Origin: *
30-Aug-2019 20:40:54.791 INFO [OkHttp http://ps.pndsn.com/...] okhttp3.internal.platform.Platform.log Access-Control-Allow-Methods: GET
This question has already being asked but with no answers.
We did try some Hail Mary approach like populating our log4j.properties
file with following entries
log4j.logger.com.squareup.okhttp3=OFF
log4j.logger.okhttp3.internal.platform=OFF
but they do not seem to work.
Most of these logs are coming for PubNub and that has a dependency for package
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<version>3.6.0</version>
</dependency>
hence we suspect that could be the package causing these problems.
Any one with any insights on how to suppress these excess logs?