This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes SSB as a Log4J logger? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "SSB as a Log4J logger?" Watch "SSB as a Log4J logger?" New topic

SSB as a Log4J logger?

Pratul Chakre

Joined: Oct 27, 2003
Posts: 18

I am trying to create a logging service using Log4J, which uses a JMS Appender with a JDBC Appender that logs messages asynchronously.

And I "have" to that using an EJB. What I am trying to do is encapsulate the logger class in a SSB and expose different methods for the client to access.

In doing so, however, my LocationInfo is lost. Fair enough, since the location info is captured by log4j from the ClassLoader( IMO), which changes for an EJB.

Now, when I am trying to set different parameters in the MDC of the logger object, even that is being retrieved as null.

Could anybody provide any ideas as to what am I missing here? Has anybody tried using a SSB for a logger?

Any pointers would be helpful.

Thanks in Advance.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: SSB as a Log4J logger?
Similar Threads
remove log4j appender from an API
what does log4j info level mean
how to disable the log
Log4j not working as expected with ejb module
Parameterize log4j appenders?