log-rotate wrapper