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

Reply via email to