Hi, You can use RollingFileAppender with a a max backup index of 0. Yoav Shapira Millennium Research Informatics
>-----Original Message----- >From: Paul Smith [mailto:[EMAIL PROTECTED] >Sent: Thursday, April 29, 2004 8:31 PM >To: 'Log4J Users List' >Subject: RE: RFE - Fixed Memory Logging > >> >> >> Actually, I think the title is a bit of a misnoma as it's >> disk space I'm >> looking to cap the usage of. >> >> I was wondering if anything in 1.3 would enable me to ensure >> I won't run >> out of hard drive. I know it's cheap and all that but, >> depending on the >> performance cost, I'd like to be able to guarantee that I >> won't run out >> of space if I have a sudden rush on system usage. >> >> What I envision is a class that would be passed the 'rolled' files and >> would keep track of them. When the total file sizes exceed a given >> trigger value it would delete the oldest files, until the >> size was at an >> acceptable amount. >> >> Does anyone else think this would be a nice feature? >> > >I personally think this would be an awesome feature. It would work well >within the Plugin architecture, and be able to told to 'manage' a >particular >Appender. Feel free to flesh out any ideas you have on the log4j-dev list >if you like. > >cheers, > >Paul Smith > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
