此内容没有您所选择的语言版本。

Appendix C. Logging Information and Recipes


C.1. Log Level Descriptions

Table C.1, “log4j Log Level Definitions” lists the typical meanings for different log levels in log4j. Your application may interpret these levels differently, depending on your choices.
Expand
Table C.1. log4j Log Level Definitions
log4j Level JDK Level Description
FATAL
The Application Service is likely to crash.
ERROR SEVERE
A definite problem exists.
WARN WARNING
Likely to be a problem, but may be recoverable.
INFO INFO
Low-volume detailed logging. Something of interest, but not a problem.
DEBUG FINE
Low-volume detailed logging. Information that is probably not of interest.
FINER
Medium-volume detailed logging.
TRACE FINEST
High-volume detailed logging.

Note

The more verbose logging levels are not appropriate for production systems, because of the high level of output they generate.

Example C.1. Restricting Logged Information to a Specific Log Level

        <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]-->
<category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
  <priority value="TRACE" class="org.jboss.logging.XLevel"></priority>
</category>
			
			
			

Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat