Fixed missing import.
Added rotating file handler.