title: How to disable okhttp3.internal.platform.Platform.log for PubNub using log4j?
body: <p>As the title mentions, how do we disable <code>okhttp3.internal.platform.Platform.log</code> for any third party dependency in this case might be PubNub. Currently our log files are getting filled up with following text</p>
  
  <pre><code>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
  </code></pre>
  
  <p>This question <a href="https://stackoverflow.com/q/51894551">has already being asked</a> but with no answers.</p>
  
  <p>We did try some Hail Mary approach like populating our <code>log4j.properties</code> file with following entries</p>
  
  <pre><code>log4j.logger.com.squareup.okhttp3=OFF
  log4j.logger.okhttp3.internal.platform=OFF
  </code></pre>
  
  <p>but they do not seem to work.</p>
  
  <p>Most of these logs are coming for PubNub and that has a dependency for package </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.squareup.okhttp3&lt;/groupId&gt;
      &lt;artifactId&gt;logging-interceptor&lt;/artifactId&gt;
      &lt;version&gt;3.6.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>hence we suspect that could be the package causing these problems.</p>
  
  <p>Any one with any insights on how to suppress these excess logs?</p>