-==* JamLogTrim *==- By James McOrmond July 21st, 1995 This program is very basic in what it does. It trims log files. One thing that is different about this one, over most other log trimmers, is that this one is purely based on the size of the log file, and not on number of lines. Because of this fact, this log trimmer is quite fast. Why did I write this trimmer? Well, it was an experiment into AmigaDos 2.04+ buffered file IO, and AmigaDos file IO in general. Also, some JamMail users seemed to be without some easy way to trim their logs. I would suggest that this program be run in a Cron, possibly daily, to trim the lengths of logs that grow relatively fast. Myself, I trim my JamMail log down to 300000 bytes three times a day. This gives me about 2 days in the log file. Why trim your logs? Well, the most obvious answer, is that they'll grow and grow, filling up all of your drive space. The other answer, that not many people think of, is that it takes time to update logfiles. It also takes more time if the file is longer, so if you keep your logfile size down to a reasonable amount, it won't be slowing your system down. This doesn't affect JamMail very much because of the usage of LogProc, which is a fully buffered Logging system, but is relevent to other programs.