logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Kumar Gupta <nitinkumargu...@gmail.com>
Subject is it possible to have different log level for same package
Date Tue, 17 May 2011 15:33:09 GMT

suppose I have a package com.foo.hello ,

can I define log level and appender such that error logs goes to one file
and all other (even including error, if possible) goes to another file.

I tried as follows, but last one is always overwriting first one

log4j.logger.com.foo.hello=ERROR, FOO_1
log4j.logger.com.foo.hello=DEBUG, FOO_2

and appender as 


Can someone please help me on that?

Thanks a ton

View this message in context: http://old.nabble.com/is-it-possible-to-have-different-log-level-for-same-package-tp31638492p31638492.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

View raw message