You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Chandra Mohan A R <ch...@renaissance-it.com> on 2004/02/10 14:38:46 UTC

Problem implementing log4j in weblogic7

Hi

I have implemented log4j for a Session Bean deployed in weblogic7.
At the run time when the logger methods are invoked i get the following error:

log4j:ERROR No appenders could be found for category (com.xyz.log.UserLogger).
log4j:ERROR Please initialize the log4j system properly.

It is evident from the error message that it is not finding the appender for the category com.xyz.log.UserLogger.

What I have done is created the log4j.properties as below and have put in the weblogic classpath

log4j.rootCategory=, A1
log4j.category.com.xyz.log.UserLogger=DEBUG, dest1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.SimpleLayout

Any suggestions/ corrections are welcome 

regards,
CM