Hello,
We are using log4j 1x in our application which we want to migrate to log4j 2.
i want to understand few things.
At moment we have a log4j.properties file which we load at the start of 
application using PropertyConfigurator method
PropertyConfigurator.configure(log4jPropFileName);
log4j property file looks something like this
######################################################################log4j.logger.Common.Logger=DEBUG,Common.Loggerlog4j.additivity.Common.Logger=falselog4j.appender.Common.Logger=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.Common.Logger.File=E:\\SoftwareAG\\appLogs\\Common\\common.loglog4j.appender.Common.Logger.layout=org.apache.log4j.PatternLayoutlog4j.appender.Common.Logger.layout.ConversionPattern=%d{yyyy-MM-dd
 HH:mm:ss:SSS zzz -} %-5p 
%m%nlog4j.appender.Common.Logger.DatePattern='.'yyyyMMddlog4j.appender.Common.Logger.MaxFileSize=10MBlog4j.appender.Common.Logger.MaxBackupIndex=10######################################################################
within application we maintain different log files for different functions. 
what i understand from v2 documentation is that i no more need to load 
configuration at start of application.
Also i understand that i need to change configuration and put them in xml file.
could you guys please help me in understand this? how can i convert my log4j 
property file to work with new log4j v2.
Thanks in Advance.
Regards,Mangat Rai
                                          

Reply via email to