Hi all.

I am having a problem with the rotation of the log files. I have
searched extensively for an answer, but have not found one that works.

I am running DSpace on a Windows server 2003 machine.

I have the default setup of the %DSPACE%/conf/templates/log4j.properties
i.e

  # Set root category priority to INFO and its only appender to A1.
  log4j.rootCategory=INFO, A1

  # A1 is set to be a RollingFileAppender.
  log4j.appender.A1=org.apache.log4j.RollingFileAppender
  log4j.appender.A1.File=@@log.dir@@/dspace.log
  # Roll when log file size is over 1Mb
  log4j.appender.A1.MaxFileSize=1048576
  # Keep up to 500 files around
  log4j.appender.A1.MaxBackupIndex=500


  # A1 uses PatternLayout.
  log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  log4j.appender.A1.layout.ConversionPattern=%d %-5p %c @ %m%n

  # A2 is the log for the Checker
  log4j.category.org.dspace.checker=INFO, A2
  log4j.appender.A2=org.apache.log4j.RollingFileAppender
  log4j.appender.A2.File=@@log.dir@@/checker.log
  log4j.appender.A2.layout=org.apache.log4j.PatternLayout
  log4j.appender.A2.layout.ConversionPattern=%m%n
  log4j.appender.A2.MaxFileSize=1048576
  log4j.appender.A2.MaxBackupIndex=500


Although the data gets logged in this file, as soon as it reaches 1 meg,
it seems to rotate, but does not make a copy of the current file (as in
dspace.log.001). It simply overwrites the current file. This makes my
statistics invalid, as it reaches this limit multiple times a day, and
the statistics run on a daily basis.

I have tried another configuration that I found that was suggested
because cocoon took over the logs and prevented dspace from logging, but
this caused the logs to rotate properly, but did not log the data from
dspace.

Any help will be appreciated.

Regards.

Shaun


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to