有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Struts2+Log4j2

我正在开发一个Struts2网络应用程序,并设置了记录器。在官方文档中,只有log4j的配置,但没有关于log4j2的配置。我开始四处看看,似乎Struts2不支持log4j2。但我发现的最后一个问题是:

Log4j2.0 is not working with Jboss 5

Struts2 doesn't support Log4j 2.0 right now, there are plans to add support for it during upcoming strutsathon.opensource.io

由于这个问题在2013年得到了回答,Struts2仍然不支持^{


共 (1) 个答案

  1. # 1 楼答案

    你真幸运!在最新版本(2.3.24)中,正如您在Releas Notes中看到的那样,添加了:

    New feature

    • [WW-4492]- Add support for Log4J2 as a struts and xwork logging backend