Logs for site access

Hi Everyone,

Is there any way to capture logged in user details in site without taking nay action on ui.

  Discussion posts and replies are publicly visible