Hi,
I've been using FFS for about a month now and find it very useful, great work!
I have a couple of batch jobs that run in silent mode & therefore create log
files.
Is there a way, (or could you update FFS), to limit the number of log files
stored?
Otherwise they just accumulate & need to be manually maintained.
It would be good to be able to select keep the last 'x' number of log files.
Thanks,
Bill
Log File Maintenance
- Posts: 3
- Joined: 13 Oct 2006
- Site Admin
- Posts: 7279
- Joined: 9 Dec 2007
I'm not sure how to "count" the number of logfiles. Probably traverse the log-
dir and count all files that match a reg-ex-like pattern. Then sort it by date
and delete the oldest ones... kind of "messy" an algorithm.
But do we have a problem in first place? I would expect the sum of all
logfiles to consume only a little disk space, so considering common tera-byte
drives, many logfiles shouldn't be an issue.
dir and count all files that match a reg-ex-like pattern. Then sort it by date
and delete the oldest ones... kind of "messy" an algorithm.
But do we have a problem in first place? I would expect the sum of all
logfiles to consume only a little disk space, so considering common tera-byte
drives, many logfiles shouldn't be an issue.