How to use logging to record user activity

Hi,

How to use logging to record streamlit user activity.

Like logging.basicConfig(filename=’./log.log’, filemode=β€˜a’, level=logging.DEBUG)

How about using something like Google Analytics or Snowplow? It won’t be logging to a local file but you can capture/record user activity this way.

Hi @shankar and welcome to the forum! :wave:

We’ve actually been discussing that over here How to add Google Analytics or JS code in a Streamlit app? You can help design this feature request or follow its progress over there on Github.

Thanks for using Streamlit!