Log level and appenders

2002-10-15 Thread j d
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.

Log level and appenders

2002-10-15 Thread j d
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.

RE: Log level and appenders

2002-10-15 Thread MALLER Stijn (BMB)
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