Hello,
Is there a way to configure Log4J so that one appender
will output commands in one logging level, and another
in a different level?
For example, console appender will be configured for
Error level , and file appender for debug level?
Thanks,
Yuval E.
Hello,
Is there a way to configure Log4J so that one appender
will output commands in one logging level, and another
in a different level?
For example, console appender will be configured for
Error level , and file appender for debug level?
Thanks,
Yuval E.
Of course that is possible. Just put filters on your logstatements...
Like this:
appender name=FILE class=org.apache.log4j.FileAppender
param name=File value=debug_and_info.log/
param name=DatePattern value=_MMdd_HHmm/
layout class=org.apache.log4j.PatternLayout