Re: Multiple logging using same property file in Log4j
Monday, February 16, 2004 10:49 PM
You can write a appender class which will log both in console as well in a output file and configure this as the appender class in the property file
Define a attribute in the property file with a boolean value.
In the appender class written by you check for the boolean attributes value.Based on it write it both console and file or only to a file.
For that attribute u need to define get/set method in the appender class