How to track user code in jupyterkab

hi,everybody,i am a teacher,i want get students’ cell code then to analyse,the detais info i want to get is:

who,cell(user code),when(when the user submit to run cell code),and server response.

when i click the button “Run the selected cells and advance”,which code to handle the click?

thank you!