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 楼答案
你真幸运!在最新版本(
2.3.24
)中,正如您在Releas Notes中看到的那样,添加了: