logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: log4j is not printing in specified path
Date Mon, 01 Aug 2011 21:31:04 GMT

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.subburaman@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-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


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


Mime
View raw message