You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by di...@jpmorgan.com on 2006/01/27 23:07:52 UTC

Two questions.

Very simple two questions .

1. How do I get struts log4j messages on my console/my log ?
2. How do I read application specific properties file in struts 
application?

Thanks.

Digant . 


This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates


Re: Two questions.

Posted by Hubert Rabago <hr...@gmail.com>.
On 1/27/06, digant.k.joshi@jpmorgan.com <di...@jpmorgan.com> wrote:
> Very simple two questions .
>
> 1. How do I get struts log4j messages on my console/my log ?
> 2. How do I read application specific properties file in struts
> application?

Instructions on how to use and configure Log4j are available on
http://logging.apache.org/log4j/docs/documentation.html

Once you've familiarized yourself with it, you can configure Struts
logs using "org.apache.struts" keys:

# Print only messages of level WARN or above from Struts.
log4j.logger.org.apache.struts=WARN

And you're already discussing Item #2 in another thread so I'll skip that.

Hubert

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