Run the app with -Dlog4j.debug=true

This will make Log4j print out how it is configuring itself.  Often times it turns out that it's picking up some other config file than the one you assume it should be picking up.

Jake

On Mon, 1 Aug 2011 13:16:28 -0700 (PDT)
 Sivaks <sivakumar.subbura...@verizonwireless.com> wrote:

Hi,

I am trying to log info statements using log4j. I have included log4j.xml
(refer attachment).
static Logger logger = Logger.getLogger("Example.class");
  
logger.info(" Test page1");

After running the application, if i look at the specified path, I dont see
any files which i mentioned in log4j.xml.

Let me know if you need any clarification.

Any help appreciated

http://old.nabble.com/file/p32172797/log4j.xml log4j.xml
Regards,
Siva
--
View this message in context: http://old.nabble.com/log4j-is-not-printing-in-specified-path-tp32172797p32172797.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to