Added log rotation feature.