1 Reply Latest reply on Sep 12, 2006 9:29 PM by Eric Ray

    Logging in a servlet

    Eric Ray Novice

      What's the best way to get access to the log4j Logger from the LoggingService. I would think that I could use a JNDI lookup but I don't know what context to get or what the name is.

      I've seen sample from googling this topic that look like this...

      Logger.getInstance("category");

      But I'm not sure that will do what I want. I want the Logger that knows about my appender that I defined in the log4j.xml file.

      Thanks.
      Eric Ray