RE: How to get values from log4j.xml file

2008-08-26 Thread Bender Heri
Logger.getLogger().getAppender( SERVER_LOG ); -Original Message- From: Reza Razavipour [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 2:30 AM To: Log4J Users List Subject: How to get values from log4j.xml file All, I have a log4j.xml file for my application. I have

Re: How to get values from log4j.xml file

2008-08-26 Thread Reza Razavipour
Thanks for the response. When I try it, I get null for Appender. Any thoughts on why? The code is as follows: jboss-log4j.xml has appender name=XXX_LOG_FILE class=org.jboss.logging.appender.DailyRollingFileAppender param name=File value=${jboss.home.dir}/bin/log//

Re: How to get values from log4j.xml file

2008-08-26 Thread Curt Arnold
On Aug 26, 2008, at 10:02 AM, Reza Razavipour wrote: Thanks for the response. When I try it, I get null for Appender. Any thoughts on why? The code is as follows: jboss-log4j.xml has appender name=XXX_LOG_FILE class=org.jboss.logging.appender.DailyRollingFileAppender

RE: [SPAM (Keyword Checking)] - JMS Appender Issue - log4j - Found word(s) list error in the Text body

2008-08-26 Thread NehaG
The log4j.properties file is being read by my code. As other appenders are working fine for me with the same configurations. But the JMS Appender is giving the problem. The error may lie somewhere else. Bender Heri wrote: This error occurs normally if the config file could not have been

Re: [SPAM (Keyword Checking)] - JMS Appender Issue - log4j - Found word(s) list error in the Text body

2008-08-26 Thread Curt Arnold
On Aug 27, 2008, at 12:38 AM, NehaG wrote: The log4j.properties file is being read by my code. As other appenders are working fine for me with the same configurations. But the JMS Appender is giving the problem. The error may lie somewhere else. Add a log4j.debug=true to the file and