Just create one appender per level and use a LevelFilter to get only the correct level. You may find that doing something slightly different is more useful. Have each appender have a certain level and above so that DebugAppender has all messages, InfoAppender has everything but DEBUG, etc. I find that when I look through the DEBUG logs I want to see all higher logs also.
On 7/26/07, Sarvananda <[EMAIL PROTECTED]> wrote: > > Dear all, > > I have a simple question and I have no solution. Did a lot of google and > tried too many things. I am not going where I want to. My only requirement > is : I need to be able to use a logger object and append different levels of > logs into different files (ofcourse the logs should have the classname, time > and the error)(like Warn messages go to warn_log error messages go to > error_log) . I am completely stuck with this simple thing... may be I just > have too much on my mind. > > I would appreciate if someone could help me with this. > > Thanks in advance for your time > > Regards, > > > -- > View this message in context: > http://www.nabble.com/level-based-logging-into-seperate-files-tf4150902.html#a11808248 > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Stauffer http://www.geocities.com/stauffer_james/ 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]
