[jboss-user] [Beginners Corner] - Logging in a servlet

c_eric_ray do-not-reply at jboss.com
Tue Sep 12 21:09:10 EDT 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971158#3971158

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971158



More information about the jboss-user mailing list