title: How to set to not print out DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log for google log?
body: <p>Sorry, I'm not english  native.</p>
  <p>I connected with google log.When I started for spring boot,the program is died.Because Too many logs print out. This is my log and error.</p>
  <pre><code>[grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] INBOUND HEADERS: streamId=207 headers=GrpcHttp2ResponseHeaders[grpc-status: 0, content-disposition: attachment] padding=0 endStream=true
  [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] OUTBOUND HEADERS: streamId=459 headers=GrpcHttp2OutboundHeaders[:authority: logging.googleapis.com:443, :path: /google.logging.v2.LoggingServiceV2/WriteLogEntries, :method: POST, :scheme: https, content-type: application/grpc, te: trailers, user-agent: grpc-java-netty/1.39.0, x-goog-api-client: gl-java/11.0.10 gccl/2.3.2 gapic/2.3.2 gax/1.66.0 grpc/1.39.0, grpc-accept-encoding: gzip, authorization: Bearer ya29.c.b0AXv0zTNJXzltMy4mjSxLeBBi5FEjdutXjFapVXcbzZAkTR3NmGbQTCas6LsKA0N2OMAwlrH45Vo2TsxXA_gnhiIkOBUFoGpmltPxKln_vVYQcXsc6ogfViKv5RfSTFdFQF9vbvIpD5WMlYNBxeLVZjczD5zqQVYHYX9MyW9dcAF8U8B3MpYiOGam5gljwxEPevleZtRrdaMT9N1XwrQOQ4akSdZFyJU, grpc-timeout: 49999860u] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false
  [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] OUTBOUND DATA: streamId=261 padding=0 endStream=true length=1049 bytes=00000004140a2470726f6a656374732f64786d726f632f6c6f67732f6170706c69636174696f6e2e6c6f67121f0a076761655f61707012140a0a70726f6a6563...
  [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] OUTBOUND DATA: streamId=459 padding=0 endStream=true length=1050 bytes=00000004150a2470726f6a656374732f64786d726f632f6c6f67732f6170706c69636174696f6e2e6c6f67121f0a076761655f61707012140a0a70726f6a6563...
  [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] OUTBOUND DATA: streamId=457 padding=0 endStream=true length=1050 bytes=00000004150a2470726f6a656374732f64786d726f632f6c6f67732f6170706c69636174696f6e2e6c6f67121f0a076761655f61707012140a0a70726f6a6563...
  [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log - [id: 0x6413875c, L:/xxx:58478 - R:logging.googleapis.com/142.251.42.202:443] OUTBOUND DATA: streamId=455 padding=0 endStream=true length=1050 bytes=00000004150a2470726f6a656374732f64786d726f632f6c6f67732f6170706c69636174696f6e2e6c6f67121f0a076761655f61707012140a0a70726f6a6563...
  ...
  java.lang.RuntimeException: com.google.cloud.logging.LoggingException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.999977764s. [remote_addr=logging.googleapis.com/xxx.xxx.xxx.xxx:xxx]
  </code></pre>
  <p>I sow <a href="https://cloud.google.com/logging/docs/setup/java" rel="nofollow noreferrer">google log document</a>.The google recommand to use logging.properties and use io.grpc and sun.net logging level is kept at INFO level</p>
  <blockquote>
  <p>it is recommended that io.grpc and sun.net logging level is kept at INFO level,
  as both these packages are used by Cloud internals and can result in verbose / initialization problems.<br><br>
  io.grpc.netty.level=INFO<br>
  sun.net.level=INFO</p>
  </blockquote>
  <p>I added logging.properties and -Djava.util.logging.config.file=/path/to/logging.properties.</p>
  <pre><code>io.grpc.netty.level=INFO
  sun.net.level=INFO
  </code></pre>
  <p>But It didn't work, still print out too many logs.</p>
  <p><strong>How to set to not print out &quot;DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler.log&quot;?</strong> I am using logback.</p>
  <p>This is my logback.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;configuration scan=&quot;true&quot; scanPeriod=&quot;30&quot;&gt;
      &lt;appender name=&quot;STDOUT&quot; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;
          &lt;target&gt;System.out&lt;/target&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;[%d{yyyy-MM-dd HH:mm:ss}:%-3relative][%thread] %-5level %logger{100}.%M - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
      
      &lt;appender name=&quot;CLOUD&quot; class=&quot;com.google.cloud.logging.logback.LoggingAppender&quot;&gt;
          &lt;log&gt;application.log&lt;/log&gt; 
          &lt;resourceType&gt;gae_app&lt;/resourceType&gt; 
          &lt;credentialsFile&gt;myfile&lt;/credentialsFile&gt;
          &lt;enhancer&gt;com.example.logging.logback.enhancers.ExampleEnhancer
          &lt;/enhancer&gt; 
          &lt;flushLevel&gt;WARN&lt;/flushLevel&gt; 
      &lt;/appender&gt;
  
      &lt;root level=&quot;debug&quot;&gt; &lt;!-- ☆☆ If I use debug level, The program is died --&gt;
          &lt;appender-ref ref=&quot;STDOUT&quot; /&gt;
          &lt;appender-ref ref=&quot;CLOUD&quot; /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>pom.xml in relation to google log</p>
  <pre><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;libraries-bom&lt;/artifactId&gt;
              &lt;version&gt;24.1.0&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-gcp-starter-logging&lt;/artifactId&gt;
          &lt;version&gt;1.2.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-logging-logback&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>