I think RollingFileAppender does that except that it does it by size, not by run. Could whatever starts your program rename the log files before starting?
shirish <[EMAIL PROTECTED]> wrote: > Hi, > > I have a reqmt for a stand alone java client to output the log to a log > file. > This log file should be created per run of the java client. > The earlier log file should be renamed with an incremental integer > > for e.g > > applog.log is already existing > next run of the client should generate applog.log and rename the earlier > applog.log to applog1.log and so on . > > Can this be done through log4j > > Regards... -- James Stauffer http://www.geocities.com/stauffer_james/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]