A fair log rotate

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.