Added rotating log support.