lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On a linux based system you could use logrotate to do this for you.

So you create files such as audit.log and logrotate will create (at an
interval of your choice) audit.log.20110708 or audit.log.1

It will also compress them if you want and only keep the latest X
versions and much more besides. Including running custom scripts when
the files are rotated.