log4j performance

前端 未结 7 1686
终归单人心
终归单人心 2021-01-08 01:18

I\'m developing a web app, and I\'d like to log some information to help me improve and observe the app. (I\'m using Tomcat6)

First I thought I would use StringBuild

7条回答
  •  迷失自我
    2021-01-08 01:40

    Make sure you have a proper logging strategy. That means make sure you define what to log and have it separated into debug, trace, info, warning and error as well some others if you need them. Also make sure you give the ability to switch it on and off to enact performance/debugging as needed.

    Logging can have a significant impact on a heavily used site/app, Also logging too much gives you more information than you can sort through. Logging sometimes is the only post-incident debugging tool you have so make sure you make it count.

提交回复
热议问题