Hi all,
I have another log4j question. I want to have ERROR log messages written to a separate file. How can I do this?
-- Joe
-
Write errors to different log file w/ log4j? (3 messages)
- Posted by: Joe Attardi
- Posted on: May 25 2004 16:20 EDT
Threaded Messages (3)
- Write errors to different log file w/ log4j? by sriram chandra on May 25 2004 19:34 EDT
- Write errors to different log file w/ log4j? by Joe Attardi on May 26 2004 09:46 EDT
- Write errors to different log file w/ log4j? by sriram chandra on May 27 2004 03:41 EDT
- Write errors to different log file w/ log4j? by Joe Attardi on May 26 2004 09:46 EDT
-
Write errors to different log file w/ log4j?[ Go to top ]
- Posted by: sriram chandra
- Posted on: May 25 2004 19:34 EDT
- in response to Joe Attardi
Hello
I think u can use filters if u use log4j.xml.
-sriram -
Write errors to different log file w/ log4j?[ Go to top ]
- Posted by: Joe Attardi
- Posted on: May 26 2004 09:46 EDT
- in response to sriram chandra
Could you explain that a little more? I am not sure what you mean by that. -
Write errors to different log file w/ log4j?[ Go to top ]
- Posted by: sriram chandra
- Posted on: May 27 2004 15:41 EDT
- in response to Joe Attardi
well each appender has a threshold value..which u can set.
U can refer
http://logging.apache.org/log4j/docs/api/org/apache/log4j/AppenderSkeleton.html
also u can use filters to filter the messages.
-ram