https://bz.apache.org/bugzilla/show_bug.cgi?id=60493

            Bug ID: 60493
           Summary: Logger without handler don't use root handler
           Product: Tomcat 7
           Version: 7.0.67
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Integration
          Assignee: dev@tomcat.apache.org
          Reporter: dam...@tacheron.fr
  Target Milestone: ---

When you declare a logger in JULI configuration file, if you don't assign it a
handler, it will no produce outputs, even if there is a handler connected to
root handler (and useParents left to default value).

The problem resides in org.apache.juli.ClassLoaderLogManager

addLogger méthod use setUseParentHandlers (true) or (false) depending on
configuration : 
- is useParentHandlers is setted : OK 
- if handler associated to the logger, useParentHandlers setted to false : OK
BUT
there is no default value (nor initialization of the attribute)
AND
as a boolean default value is false, in some cases the useParentHandlers
attribute is not setted and his value remains false.

This is abnormal. With JUL (not JULI), useParentHandlers defaults to true and
this is a good thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to