logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Application Context Logging
Date Tue, 14 Dec 2004 13:50:02 GMT

Have a look at this document:


Following that, CVS check out log4j 1.3 and consult the examples
located under ./examples/tiny-webapp/

Although the documentation in ./examples/tiny-webapp/ is up to date,
certain important details in log4j 1.3 ContextJNDISelector have
changed.  I have not recently tested the code in
./examples/tiny-webapp/. Thus, it may contain some small
errors. However, the method described therein is expected to be very
widely used, so having a look won't be a waste of your time.

I hope this helps,

At 01:53 PM 12/14/2004, Jim Morrison wrote:
>I need to log messages from separate applications in the same jvm which 
>use the same common classes, so in essence i am doing this
>log.info("my host", "my application", "my message" )
>through a wrapper over log4j. Any Ideas how i can write these messages to 
>a different log file for each host/application pair, so we have
>host2.app1.log  etc
>Would this mean using a custom appender ? Are there any examples around on 
>the web ?

Ceki Gülcü

  The complete log4j manual:

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

View raw message