log4J级别的用法 [英] Usage of log4J levels

查看:62
本文介绍了log4J级别的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编码时使用log4j级别的最佳实践是什么? 我的意思是我们什么时候使用INFO日志记录,什么时候使用DEBUG日志记录/ERROR日志记录等等.

What is the best practice in using log4j levels while coding. I mean when do we use INFO logging, when do we use DEBUG logging / ERROR logging etc.

推荐答案

最好的学习方法是通过示例.阅读一些开放源代码的源代码,例如Tomcat或应用程序区域中的任何内容,然后看看您看到的内容.

The best way to learn is by example. Read source of some open source things, like, oh, Tomcat or whatever is in your application area, and see what you see.

这篇关于log4J级别的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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