title: How to override/increase Java logging level for a package?
body: <p>I'd like to override the logging level for a specific package.</p>
  
  <p>It works when the level is more restrictive, but it does not work when the level is less restrictive.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>public class Main {
    private static final java.util.logging.Logger JDK_LOGGER = java.util.logging.Logger.getLogger(Main.class.getName());
  
    public static void main(String[] args) {
      JDK_LOGGER.fine("Hello fine (jdk)...");
      JDK_LOGGER.info("Hello info (jdk)...");
      JDK_LOGGER.severe("Hello severe (jdk)...");
  </code></pre>
  
  <p>If the specified package has a more restrictive level, it works:</p>
  
  <pre><code>handlers = java.util.logging.ConsoleHandler
  .level = FINE
  java.util.logging.ConsoleHandler.level = FINE
  java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  com.ice.level = SEVERE
  </code></pre>
  
  <p>It prints:</p>
  
  <pre><code>août 19, 2019 10:44:25 PM com.ice.foo.Main main
  GRAVE: Hello severe (jdk)...
  </code></pre>
  
  <p>But if the specified package has a less restrictive level, it does not work as what I was expecting:</p>
  
  <pre><code>handlers = java.util.logging.ConsoleHandler
  .level = INFO
  java.util.logging.ConsoleHandler.level = INFO
  java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  com.ice.level = FINE
  </code></pre>
  
  <p>It prints:</p>
  
  <pre><code>août 19, 2019 10:55:50 PM com.ice.foo.Main main
  INFOS: Hello info (jdk)...
  août 19, 2019 10:55:50 PM com.ice.foo.Main main
  GRAVE: Hello severe (jdk)...
  </code></pre>
  
  <p>But, because FINE > INFO > SEVERE, I was expecting to see the 3 logs (fine, info and severe).</p>
  
  <p>Where is my mistake?</p>
  
  <p>Thx.</p>