One point to add: The reason DSpace ships with size-based rolling is that there was a problem with date-based. If two separate JVMs are writing to the same log (e.g. the Handle Server and the webapp), occasionally both JVMs would roll the same log file resulting in data loss. With size-based rolling, you still get the two rolls but you just get one very small log file as opposed to data loss.
This problem may have been fixed in log4j since then, but worth checking. Rob On 3/16/07, Stuart Lewis [sdl] <[EMAIL PROTECTED]> wrote: > Hi Jose, > > I think you¹ll also need to change: > > log4j.appender.A1=org.apache.log4j.RollingFileAppender > > To > > log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender > > The DatePattern describes the format of the filename when the file rolls > over. It might be worth testing this on a development system to make sure > you're not going to lose any log files. > > Hope this helps, > > > Stuart > _________________________________________________________________ > > Datblygydd Cymwysiadau'r We Web Applications Developer > Gwasanaethau Gwybodaeth Information Services > Prifysgol Cymru Aberystwyth University of Wales Aberystwyth > > E-bost / E-mail: [EMAIL PROTECTED] > Ffon / Tel: (01970) 622860 > _________________________________________________________________ > > > On 16/3/07 21:08, "Jose Blanco" <[EMAIL PROTECTED]> wrote: > > > I¹d like the dspace.log files to roll based on date rather than size. From > > some documentation I found on the web I think that the way to do this is to > > replace this: > > > > log4j.appender.A1.MaxFileSize=1048576 > > > > with > > > > log4.appender.A1.DatePattern='.'yyyy-MM-dd-a > > > > This will cause the log files to roll at midnight ( I hope ). Since I wont > > be > > able to check this, I wonder if some one could confirm this. I would not > > want > > to loose any data from the log file. > > > > Many thanks! > > > > Jose > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

