A fair log rotation

The problem occurs when running long-living scripts (daemons for
example).
All messages will be written to the file with date when script was
started.