Handling logs from Blender console

Hello,
I tried to retrieve logs from the Blender console in order to retrieve the actions of the user as a String but I haven’t found any results.
Is there a way to do it in Blender ?

in order to retrieve the actions of the user

Hi, start blender with –debug-events command line argument?

Not entirely sure what you exactly want in output.

Thank you for your answer, I will look into that right now.
What I want as an output is each actions made by the user in line of code. The objective would be to share it using a webserver in order to do a kind of liveshare for blender.