Hi sarvananda, am also facing same problem. if you got solution let me.I able to log dubug logs and above int one file, error and above into another file.But i unable to log only debug logs in to one file and only error logs into anotherfile.I would really appreciate if one help with this.you can mail me to [EMAIL PROTECTED] .
thanks, Srinivas.A emailid:[EMAIL PROTECTED] Sarvananda wrote: > > right. > with the fair amount of noob knowledge I have in Log4j, I ll do some > google and R&D and post how I did this. Mean while if someone feels they > could give me some other pointers regarding this issue... Id be grateful > > thanks, > > > James Stauffer wrote: >> >> 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] >> >> >> > > -- View this message in context: http://www.nabble.com/level-based-logging-into-seperate-files-tf4150902.html#a13230508 Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
