在日志记录中获取Spring创建的bean
我是个日志新手,我想看看spring的日志,他创造的所有豆子,一切 我已经在我的在日志记录中获取Spring创建的bean,spring,spring-mvc,logging,log4j,log4j2,Spring,Spring Mvc,Logging,Log4j,Log4j2,我是个日志新手,我想看看spring的日志,他创造的所有豆子,一切 我已经在我的log4j2.xml中尝试了这段代码,但什么也没发生(对于controller包中的类,我得到了日志,这没问题) 因此,在Spring类中,它们不包含类似以下内容:static final Logger=LogManager.getLogger(…)和logger.debug(…)或者什么 看看这个 org.springframework.beans.factory.support.DefaultListable
log4j2.xml
中尝试了这段代码,但什么也没发生(对于controller
包中的类,我得到了日志,这没问题)
因此,在Spring类中,它们不包含类似以下内容:static final Logger=LogManager.getLogger(…)代码>和logger.debug(…)代码>或者什么 看看这个
org.springframework.beans.factory.support.DefaultListableBeanFactory
您还可以从中获得更多信息我尝试了
,但没有日志!!
org.springframework.beans.factory.support.DefaultListableBeanFactory