logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: General config question for Log4J2
Date Tue, 23 Apr 2013 22:28:47 GMT
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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message