JBoss 7.2版本使用什么日志?[英] what logging is used by JBoss version 7.2?

本文是小编为大家收集整理的关于JBoss 7.2版本使用什么日志?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。



我想知道JBOSS Application Server 7.2版本默认使用了哪些记录?





一般而言,日志记录应分为两个部分.伐木立面和日志管理器.七月. log4j不会分开这些概念. jboss logging and slf4j做.



要回答这个问题,JBOSS应用程序服务器7.x,Jboss EAP和Wildfly ass last laster laster logging for Logging立面和日志管理器的JBOSS日志管理器.您可以使用JBOSS LOGGGING,SLF4J,JUL,LOG4J或CONMONS LOMOGG in ACADE.

我建议您使用应用程序服务器提供的记录子系统配置日志管理器.这是配置服务器记录的唯一方法.您可以使用log4j为部署配置Log4J Log Manager.但是,如果您这样做,则会丢失运行时配置更改,例如打开DEBUG记录.



There are many variations of logging that can be used in java. Most popular are the log4j and JDK logging.

I am wondering what logging is used by JBoss Application Server 7.2 version by default?

It is very hard to find the logger used by looking at the modules or configuartion files.

I would aprreciate if somebody can help me in this regard.

Thank you


Generally speaking, logging should be broken into two parts. A logging facade and a log manager. J.U.L. and log4j don't separate these concepts. JBoss Logging and slf4j do though.

A logging facade should be just that, a facade. It's only role is to get a logger based on a category, generally a class name or package, and have methods that send your log statements to a log manager.

The job of the log manager is to handle sending the messages. This is where the handlers/appenders should be defined and configured.

To answer the question, JBoss Application Server 7.x, JBoss EAP and WildFly all use JBoss Logging for the logging facade and JBoss Log Manager for the log manager. You can use JBoss Logging, slf4j, JUL, log4j or commons logging for your facade.

I would recommend you configure the log manager using the logging subsystem provided with the application server. This is the only way to configure the server logging. You can use log4j to configure the log4j log manager for your deployment. However you if you do that you lose runtime configuration changes like turning on DEBUG logging.