Hi list,

I've been using Log::Log4perl in my application for a few months now and quite
appreciate its flexibility.  There is one simple issue that I can't quite
work out, however...

How would one create a logging setup that will log:
 - all TRACE messages to a log file
 - all INFO messages to the screen

My understanding is that these would need to be appenders on the root logger
in order to catch all messages, however there can only be one log level set
for the logger.  There's no way that I can see to set the log level per
appender, or to have two root loggers with different log levels.

I'm sure there must be some way to do it!

Thanks in advance,
Andrew

------------------------------------------------------------------------------
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to