2 Replies Latest reply on Feb 2, 2016 1:15 PM by Robert Nikander

    JUL Logger.getLogger(name) returning different objects?

    Robert Nikander Newbie

      Hi,

       

      Isn't `java.util.logging.Logger.getLogger(String)` supposed to return the same object when called with same string.  I get different objects, even when calling it one after another in the same function.  This is Wildfly 9.0.1.  Some calls are in my web apps `ServletContextListener`, others are `Servlets`.

       

      I noticed this when I set a Logger's `useParentHandlers` to false in my context listener, but later saw that property was true on the Logger used by the Servlet.

       

      Rob