Logging user activity in web app

后端 未结 3 1683
旧巷少年郎
旧巷少年郎 2020-11-29 00:50

I\'d like to be able to log user activities in a web app. I\'m currently using log4j which works well for logging errors etc, but I\'m unsure what the best approach is to lo

3条回答
  •  抹茶落季
    2020-11-29 01:40

    I have used log4j in the past in order to log more than just errors. I added INFO tags throughout my code and change the logging level. That way if you decide you no longer need to log those activities you can just change the logging level and you are done. I hope that helps.

提交回复
热议问题