title: Setting up java Logger for a specific package
body: <p>could anybody explain to me, how to set up java Logger for various classes from a concrete package ? </p>
  
  <p>for example:
  if I get this one and set it up </p>
  
  <pre><code>Logger logger = Logger.getLogger("com.google.api.client.*");
          logger.setLevel(Level.CONFIG);
          logger.addHandler(new Handler() {
  
              @Override
              public void close() throws SecurityException {
              }
  
              @Override
              public void flush() {
              }
  
              @Override
              public void publish(LogRecord record) {
                  // default ConsoleHandler will take care of &gt;= INFO
                  if (record.getLevel().intValue() &lt; Level.INFO.intValue()) {
                      System.out.println(record.getMessage());
                  }
              }
          });
  </code></pre>
  
  <p>there are conditions like this  </p>
  
  <p><code>Logger.getLogger(HttpTransport.class.getName()).isLoggable(Level.CONFIG);</code> </p>
  
  <p>in the library where <code>HttpTransport</code> is part of <code>com.google.api.client.*</code> </p>
  
  <p>But the problem is, that </p>
  
  <pre><code>Logger.getLogger(HttpTransport.class.getName()).isLoggable(Level.CONFIG); 
  </code></pre>
  
  <p>is <code>false</code> ... like if a different logger was obtained</p>
  
  <p>How else should I set it for all classes from the same package? if there are conditions for loggers for concrete classes like HttpTransport.  </p>