You would need to create different appenders in your log4j.properties,
based on the package name of your application.  Here is an example of
two appenders writing to the console.  The "additiviy" property prevents
duplicate logging.

# Root logger
log4j.rootCategory=ERROR, R

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.R=org.apache.log4j.ConsoleAppender

# myapp logging
log4j.category.com.myapp=DEBUG, myapp
log4j.additivity.com.myapp=false

log4j.appender.myapp.layout=org.apache.log4j.PatternLayout
log4j.appender.myapp.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.myapp=org.apache.log4j.ConsoleAppender


On Tue, 2003-02-11 at 10:50, [EMAIL PROTECTED]
wrote:
> Hi,
> 
> how can I separate the log out put from axis and my own application 
> classes?
> The log4j.properties for my app is located in /WEB-INF/classes/. 
> 
> Any suggestions? Thanks,
> Kristian


Reply via email to