0

我一直在尝试找出使用Spring MVC登录我的应用程序的最佳实践。如果可以,请帮助我理解并找出最佳实践。

现在我看到在我的应用程序中实现日志记录的两种选择:

  1. Log4J 日志记录(传统方法非 AOP 特定)

  2. 基于 AOP 的日志记录

我真的很感激答案,让我了解选择哪种方法以及每种选择的好处。

4

1 回答 1

0

Log4J provides good flexibility by providing log4j.properties where you can configure what level of logging you are intersted in. I would recommend using the Log4J logging.

Here is a good reference point elaborating the Log4J logging levels.

于 2013-04-16T09:07:15.643 回答