Thread: log4j
View Single Post
  #1 (permalink)  
Old 01-18-2008, 07:24 AM
swapna_d swapna_d is offline
Member
 
Join Date: Jan 2008
Posts: 3
swapna_d is on a distinguished road
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
Reply With Quote
Sponsored Links