Hi all,

    I would want to change the log filepath and log filename at runtime, how do 
i go about doing it???

The property file looks like this-
log4j.debug=false

#To specify any user defined logger's level and appender
log4j.logger.DEBUG=debug, debugAppndr

#To specify not append the log statement to upper logger
log4j.additivity.DEBUG=false

#To specify whether to append the new log statement or to start from begining
log4j.appender.debugAppndr.Append=true

#To specify type of appender
log4j.appender.debugAppndr=org.apache.log4j.RollingFileAppender

#To specify name of the appender file
log4j.appender.debugAppndr.File=logs/nre_debug.log

#To specify layout for the appender
log4j.appender.debugAppndr.layout=org.apache.log4j.PatternLayout

#To specify the the way the output looks
log4j.appender.debugAppndr.layout.ConversionPattern=%d{dd:MM:yyyy HH:mm:ss} - 
%m %n

Thanks & Regards,
Kailash.K.N.

Reply via email to