log4j performance

前端 未结 7 1734
终归单人心
终归单人心 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条回答
  •  梦毁少年i
    2021-01-08 01:41

    I don't have to worry about log4j's performance even if I heavily log

    Exactly. Do not optimize until your profiling results tell you to. There are cases, when logging performance is a bottleneck, but you need first to hit that case, then optimize for it.

提交回复
热议问题