什么是调试日志在弹簧MVC [英] what is debug logging in spring MVC

查看:100
本文介绍了什么是调试日志在弹簧MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我听说过调试日志记录。



这是我可以打开的东西,我可以看到更多的细节,问题在哪里,或者

是否需要在每个文件中编程只有那个消息将被显示在我的硬编码文件中。

解决方案

Spring使用Apache Commons Logging API,内部Java日志记录或log4j(如果可用)。请参阅文档的这一部分更全面的解释。



调试日志记录是指Spring在调试级别上执行大量详细日志记录,通常不会记录。但是,如果需要,您可以重新配置日志记录,以显示此级别的信息。再次看到上述链接。


My spring MVC is not working and i am getting error resource not found.

I have heard about debug logging.

Is it something that i can turn on and i can see more detail that where is the problem or

is it something i need to program in every file only that message will be shown which i hard coded in file

解决方案

Spring uses the Apache Commons Logging API, which in turn uses either internal Java logging, or log4j (if available). See this part of the docs for a fuller explanation.

"debug logging" refers to the fact that Spring does a lot of verbose logging at "debug level", which is normally not recorded. You can reconfigure your logging, however, to show this level of information if required. Again, see the above link.

这篇关于什么是调试日志在弹簧MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆