This patch grew out of a project needing to support syslog files on an embedded platform machine with only RAM and flash. No disk and no swap space. Placing the log files on the flash disk would introduce excessive wear on the flash device. Placing the log files in RAM resulted in a slow squeeze of available memory as they grew ever larger.
By introducing circular logfiles, it becomes possible to put the syslog files on a RAM disk but contain them at a constant size that can be planned for and does not require routine maintenance inappropriate to an embedded device.
Support for circular logfiles requires a small patch to syslogd and a support program called clog. The clog program creates the circular logfiles and can be used to view their contents.
Source code for this software is available under the BSD public license:
In order to build the patched syslogd, the clog source must be available in a sibling directory. That is, if syslogd is in /usr/src/usr.sbin/syslogd, then clog should be unpacked to /usr/src/usr.sbin/clog.