Just put a threshold of error on the error appender and it should work
fine.  You don't need to use different loggers in code.

On 6/22/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I would like to split messages on two files.
> For example in my app I have my logger  (linked  to TestLog4j.class) and
> I would like to use only this one logger to log errors and
> info/debug/warn events.
> In addition I would like to have one file (info.log) that contains all
> messages and another file (error.log) that contains ONLY error /fatal
> messages.
> In this way I can monitor only one file that contains only error /fatal
> messages and avoid to filtering messages not critical.
> The info log file is also available for developers in order to trace
> what application is doing.


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to