Actually, in reconsidering your question the solution is going to be a bit messy. I haven't tried it but you should be able to do:
<root level="trace"> <appender-ref ref="debugLog"> <thresholdFilter level="info" onMatch="DENY" onMismatch="NEUTRAL"/> <thresholdFilter level="debug" onMatch="ACCEPT" on Mismatch="DENY"/> </appender-ref> <appender-ref ref="errorLog"> <thresholdFilter level="fatal" onMatch="DENY" onMismatch="NEUTRAL"/> <thresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/> </appender-ref> <root> The first threshold filter will discard events with a logging level higher than what your want. The second discards events lower than what you want. Ralph On Apr 23, 2013, at 5:22 PM, Peter DePasquale wrote: > Can you point me to an example in the documentation? I didn't see anything > like that in there, that I recall... > > > On Tue, Apr 23, 2013 at 6:28 PM, Ralph Goers > <ralph.go...@dslextreme.com>wrote: > >> You cannot have two root loggers but you can have multiple appender-refs >> on them. Each appender-ref can have its own log level so I believe you get >> the same behavior that you are looking for. >> >> Ralph >> >> On Apr 23, 2013, at 12:37 PM, Peter DePasquale wrote: >> >>> Is it possible to use two root loggers, one to capture trace and one to >>> capture errors (or more generally, two different levels)? If so, can >>> someone please provide a simple config example? Thanks. >>> >>> -- >>> Peter J. DePasquale, Ph.D. >>> Department of Computer Science >>> The College of New Jersey >>> (e) depasqua [at] tcnj [dot] edu >>> (p) 609-771-2806 >>> (f) 609-637-5190 >>> (o) Holman Hall - Room 238 >>> (l) Holman Hall - Room 255 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >> For additional commands, e-mail: log4j-user-h...@logging.apache.org >> >> > > > -- > Peter J. DePasquale, Ph.D. > Department of Computer Science > The College of New Jersey > (e) depasqua [at] tcnj [dot] edu > (p) 609-771-2806 > (f) 609-637-5190 > (o) Holman Hall - Room 238 > (l) Holman Hall - Room 255 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org