Getting when someone uses ClearPedTasks

Hi! I want to log when an admin uses ClearPedTasks. When I created a function it didn’t work. Is there any event or something? Thanks