[Task4] Implemented logging