log4j set different log files for different packages programmatically -
i know how set different log files different packages in log4j.properties file, want set them programmatically.
for example, how can manage configuration programmatically?
log4j.appender.myappeder=org.apache.log4j.rollingfileappender log4j.appender.myappeder.file=${log}/mylog.log log4j.appender.myappeder.layout=org.apache.log4j.patternlayout log4j.appender.myappeder.layout.conversionpattern=%p %t %c - %m%n log4j.logger.com.mypackage=debug,myappeder
Comments
Post a Comment