This is lisp and records a heap of stuff right down to commands used, I have had it for years, set it up for multi users, so each output was separate and could monitor any staff member.
Had a reason at the time but never used it as it could be considered spying on staff.
Productivity_Analysis_Tool.lsp