Re: Build-in support for log file rotation on Windows
"Andrew J. Caines" <[email protected]> Sun, 13 Feb 2022 05:01:06 +0000
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <[email protected]> |
ZzZombo, > Unfortunately, Privoxy locks the file while it's active, meaning no > other program may operate on the file Please show this happening and basic details of the platform. > and turning it off, rotating, and then on can't be done for obvious > reasons. While that should not be necessary in this case, what are the obvious reasons? Performing actions before and after rotation is a common feature of log rotation tools. For single log files used by processes which don't (re)create it, the easy approach is copy and truncate. This should be an option in the platform's log rotation. See e.g. copytruncate in logrotate(8). -- -Andrew J. Caines- Unix Systems Architect [email protected] "Machines take me by surprise with great frequency" - Alan Turing