Advantage of log4j

后端 未结 8 2140
余生分开走
余生分开走 2021-02-13 18:57

What\'s the advantage of log4j over set System.out and System.err to output to a log file?

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-13 19:31

    • logging (Document historical business events that occur, you can check old logs)
    • track the application (project flow)
    • debugging the application (Detailed information what occurs in a method at granular level //data, value and all inside methods)
    • error handling (information about specific error that occur)

提交回复
热议问题