I’m absolutely sure. This practice is illegal in the EU. You can’t log stuff unless you get explicit permission from the employee, listing the exact metrics and purposes of the data logged (also things like where and how long it will be stored).
It’s baffling that Microsoft thought this was a good idea in the first place.