Hi, I am using the log4j package and I am taking the 'manual.htm' as reference. I am using it with an EJB and weblogic5.1. The error that I am getting is as follows: log4j:ERROR No appenders could be found for category (net.datalinx.NotificationServer.statelessSession.NSBean). log4j:ERROR Please initialize the log4j system properly. I am attaching the config fle that I am using. Please reply me asap. Regards, Jeet.
# Here is a Configuration-file example, which can be used with the PropertyConfigurator : #There should be only one statement related to 'rootCategory' as the next statement will overwrite the previous one. #The generalised statement for it is # log4j.rootCategory=<category>, <name1>, <name2>, ... # where category : DEBUG, INFO, WARN, ERROR or FATAL # name1 : name of output destination, name2 :.... #log4j.rootCategory=FATAL, stdout, file # Declare a appender variable named JDBC log4j.rootCategory=DEBUG, stdout, file #----------------------For screen output ------------------------------ # Configuration for the first Appender(stdout) log4j.appender.stdout=org.apache.log4j.FileAppender log4j.appender.stdout.File=System.out # The detail explanation of each identifier is given in documentation of 'PatternLayout.java' class log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %x (%F:%L) - %m%n #log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x (%F:%L) - %m%n #log4j.appender.stdout.layout.ConversionPattern=%p [%t] (%F:%L) - %m%n #-------------------- For File output------------------------------- # Configuration for the second Appender(file) #log4j.appender.file=org.apache.log4j.FileAppender log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.File=C:/ash/nsLog.log #log4j.appender.file.File=bexErrorLog.log log4j.appender.file.MaxFileSize=100kb log4j.appender.file.MaxBackupIndex=10 log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%-l [%t] %-5p (%F:%L) - %m%n log4j.appender.file.layout.ConversionPattern=%-d{dd MMM yyyy HH:mm:ss} [%t] %-5p (%F:%L) - %m%n #log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %c - %m%n #log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x (%F:%L) - %m%n #log4j.appender.file.layout.ConversionPattern=%p %t %c - %m%n
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]