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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -