title: Disable log messages about warnings for org.glassfish.jersey.internal.inject.Providers in Kafka-Connect
body: <p>My goal is to make log format in kafka-connect as json, but the following log messages are always not json and cannot be disabled:</p>
  
  <pre><code>Feb 10, 2020 4:36:03 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
  WARNING: A provider org.apache.kafka.connect.runtime.rest.resources.RootResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.apache.kafka.connect.runtime.rest.resources.RootResource will be ignored. 
  Feb 10, 2020 4:36:03 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
  WARNING: A provider org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource will be ignored. 
  Feb 10, 2020 4:36:03 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
  WARNING: A provider org.apache.kafka.connect.runtime.rest.resources.ConnectorPluginsResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.apache.kafka.connect.runtime.rest.resources.ConnectorPluginsResource will be ignored. 
  Feb 10, 2020 4:36:05 PM org.glassfish.jersey.internal.Errors logErrors
  WARNING: The following warnings have been detected: WARNING: The (sub)resource method createConnector in org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource contains empty path annotation.
  WARNING: The (sub)resource method listConnectors in org.apache.kafka.connect.runtime.rest.resources.ConnectorsResource contains empty path annotation.
  WARNING: The (sub)resource method listConnectorPlugins in org.apache.kafka.connect.runtime.rest.resources.ConnectorPluginsResource contains empty path annotation.
  WARNING: The (sub)resource method serverInfo in org.apache.kafka.connect.runtime.rest.resources.RootResource contains empty path annotation.
  
  </code></pre>
  
  <p>I know those are warings, so my goal is to either avoid those to show up, or make it in json. Neither work though.</p>
  
  <p>I tried the following setup:</p>
  
  <pre><code>&lt;logger name="org.glassfish.jersey.internal.inject.Providers" additivity="true" level="ERROR" /&gt;
  </code></pre>
  
  <p>Those log messages still appear. Any suggestion?</p>
  
  <p>I can use either logback or log4j. I currently use logback but using log4j is not a problem.</p>
  
  <p><strong>UPDATE</strong> </p>
  
  <p>I switch to log4j</p>
  
  <pre><code>log4j.rootCategory=INFO, stdout
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.layout=net.logstash.log4j.JSONEventLayoutV1
  log4j.logger.org.reflections=ERROR
  log4j.logger.org.apache.kafka=INFO
  log4j.logger.org.apache.kafka.connect.runtime.rest=ERROR
  log4j.logger.org.apache.kafka.clients.consumer.ConsumerConfig=ERROR
  log4j.logger.org.apache.kafka.clients.producer.ProducerConfig=ERROR
  log4j.logger.org.apache.kafka.clients.admin.AdminClientConfig=ERROR
  </code></pre>
  
  <p>Logs are in json format except for the WARNINGS are still there even if I set
  <code>log4j.logger.org.glassfish.jersey.internal.inject.Provider=ERROR</code></p>