implemented automatic log rolling based on date format