I am using log4j logging and am trying to log to different log files. I also want to be able to show the class names in the different log files. How do I instantiate my 2 different log files : serverFileLog and clientLogger. I need to pass in the class name so the call to get logger I can't use the logger name. Please HELP|!!!!!! Thank you!!
log4j.rootLogger=DEBUG, serverFileLog
Server File Log
log4j.appender.serverFileLog=org.apache.log4j.RollingFileAppender log4j.appender.serverFileLog.File=./ServerLog.log log4j.appender.serverFileLog.layout=org.apache.log4j.PatternLayout log4j.appender.serverFileLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n log4j.additivity.serverFileLog=false
Client File Log
log4j.appender.clientLog=org.apache.log4j.FileAppender log4j.appender.clientLog.File=./Client.log log4j.appender.clientLog.layout=org.apache.log4j.PatternLayout log4j.appender.clientLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n log4j.category.clientLogger=DEBUG, clientLog log4j.additivity.clientLogger = false