added documentation + UT for log rotate