Hi Leif,
you have to use the threshold-Option.
In your Configuration-File there must be to appenders. One for all
priorities.And one for the only-error-loggings. There you have to set:

log4j.appender.ErrorAppender.threshold=error

For every Category you log in both Appender.
Thats all
Carsten

-----Ursprüngliche Nachricht-----
Von: Leif Hanack [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 25. Juni 2001 14:28
An: [EMAIL PROTECTED]
Betreff: WG: log4j - separate loglevel ERROR?!


hello,

i hope you may help me, or at least may tell me where i can receive 
information i needed!

i want to store all ERROR-messages into one appender/file.

into another appender/file i want to store the 
log-level-depending messages.
(DEBUG, INFO, WARN, ERROR). this one works well! but so fare i 
could not handle to
store the ERROR messages twice in a separate file!

thanks in advance, leif



--
Leif Hanack

T-Systems

debis Systemhaus GEI GmbH
Innovation for eBusiness (I4E)         
Alt-Moabit 91a, 10559 Berlin
Telefon: (+49 30) 394067-31
Telefax: (+49 30) 394067-99
E-mail:  [EMAIL PROTECTED]
Internet: www.t-systems.de
 

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

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

Reply via email to