Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTMLLayout problem

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fallowing is the properteis file of log4j i am using
when layout i am using HTMLLayout its not backing up old file i.e after 10kb
if am commenting the html layout its working fine ?


log4j.rootCategory=debug, stdout, R
log4j.category.your.category.name=WARN
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender

log4j.appender.R.File=d:\\logs\\test_log.html
log4j.appender.DatePattern='.'yyyy-MM-dd-HH

# Control the maximum log file size
log4j.appender.R.MaxFileSize=10KB
# Archive log files (one backup file here)
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout=org.apache.log4j.HTMLLayot
any one help me out
thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic