This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes HTMLLayout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "HTMLLayout problem" Watch "HTMLLayout problem" New topic
Author

HTMLLayout problem

kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTMLLayout problem
 
Similar Threads
Log4j Property file
log4j: log4j:WARN No appenders could be found for logger (org.apache.commons.digester
Changing Timestamp of HtmlLayout of log4j
log4j HTMLLayout
HTMLLayout format ?