logging different levels into different files??
1 posts in topic
Flat View  Flat View

Posted By:   Mischa_Rascal
Posted On:   Thursday, October 30, 2003 05:16 AM


i wonder if it is possiple to log different logging levels to different files. for example: i want all info,debug and warning messages to be logged into file a.log and all error messages into b.log. has anybody an existing property files which shows how to do that??
thanx a lot.

Re: logging different levels into different files??

Posted By:   Manesh_Sankarankutty  
Posted On:   Monday, November 10, 2003 02:46 AM


I guess that's something simple..

If the appender is written by you, you have the control over these scenarios. So, you can route the messages to specific files based on levels of log messages.

I remember handling such a case in one of my previous encounter with log4j.. :)
About | Sitemap | Contact