HardySimpson/zlog — pull request #42 by wynnw (2013-09-19 14:32:06+00:00)
Title: Change to the static file rule to emulate python's WatchedFileHandler mode when used with external log rotation

- this emulates Python's WatchedFileHandler for logging, where we check
the inode of our logfile path to see if it was changed out from underneath
us by an external tool like logrotate.

This allows applications that use an external tool for log rotation/compression
to have a simple log configuration and not have to worry about calling zlog_reload
to reopen the new file after the external tool has run.

What do you think? I've been running with this change and things seem fine. It does add some overhead for the static file case, but no more than with the file-size-limit case where the logfile fd is opened and closed every time.