What's your suggestion for keeping streamlit app logs (in the cloud)?

This is more a streamlit-related question… I would like to log user input for a streamlit app hosted on Spaces. I was considering to use papertrail and tried something along the lines of

syslog = SysLogHandler(address=(st.secrets["logging_address"], st.secrets["logging_port"]))
logger = logging.getLogger()

This works, however I see multiple (simultaneous) entries logged for the same user action (I think I should employ a more clever use of @st.cache

Can someone suggest a better approach?

What’s an alternative convenient solution for keeping logs? Thanks!