added log rotation.