|
log4j
hi
iam new using log4j.properties file to configure log4j
i have used daily rolling file appender to roll the file on daily basis,.........but its not getting rolled at midnight.Iam sending the code which i have used.can u please any suggestions so as to get the output:
sample code used by me
log4j.rootLogger=debug,D
log4j.appender.D=org.apache.log4j.DailyRollingFile Appender
log4j.appender.D.DatePattern='.'yyyy-MM-dd-HH-mm
log4j.appender.D.File=C:/Documents and Settings/user/Desktop/log4j5/DailyRolling.log
log4j.appender.D.layout=org.apache.log4j.PatternLa yout
log4j.appender.D.layout.ConversionPattern=%d{ISO86 01} %-5p [%c] - %m%n
log4j.appender.D.Append =true
|