posted 16 years ago
Unfortunately, it is a wrong approach for the problem. If you want to send log entries to two different files, you'll only need two appenders declared in the same log4j.properties file.
I.e. say I want to log all entries to a debug.log file, and all error entries to a error.log file, also all log entries will be sent to the CONSOLE. I'll declare my log4j.properties as below.
“Everything should be as simple as it is, but not simpler.” Albert Einstein