Duc Vo wrote: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.
what if i wanted to specify a file eg.
'SysLog.txt'
all i want to use is logger.info()
but i want to be able to log to 2 custom files
'SysLog1.txt'
'SysLog2.txt'
below is my config file