Can we restrict the logging of different requests in different log files in Log4J?
0 posts in topic
Flat View  Flat View

Posted By:   Sumedha_Jindal
Posted On:   Wednesday, May 28, 2003 02:41 AM

Can we have different log files for all different levels viz a viz DEBUG,INFO,WARN,ERROR,FATAL? or we can say if I write

logger.debug("Here is some DEBUG");

The message should automatically go into a file designated for debugging only and not to any other file. And in the same way for all other types of requests.

What should be the entries in property file to achieve the same? Suggestions are welcome.



About | Sitemap | Contact