'Jupyter Hub generate automatic logs

It is possible to generate automatic log for each new Jupyter notebook file that is created?
The time, user, cell command and the output of the cell command should be available in the logs for the entire user usage period. The environment would be a Jupyter Hub Server on the Google Cloud environment created with terraform.

Appreciate any help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source