Logger appender not present

8 views
Skip to first unread message

Tom Eugelink

unread,
Jun 5, 2023, 10:57:31 AM6/5/23
to WildFly
We are in the process of a major update from JBoss 7 to WildFly 26, and almost finished. However, in our log4j.xml configuration we have a setup where request urls are logged to a separate appender.

<logger name="RequestLogFilter">
    <appender-ref ref="RequestLog"/>
</logger>


In JBoss this results in a Logger which has a handler on its own (Category.jblmLogger -> loggerNode -> handlers, size=1) and the logs are written correctly. 

The same configuration under WildFly results in a Logger without a handler on its own; the handlers collection is empty. The configuration is valid according to its schema, and works under JB7. Any suggestions why it does not configure the handler under WF26?

Tom Eugelink

unread,
Jun 5, 2023, 12:33:38 PM6/5/23
to WildFly
This post is double because I though the other one did not get through.

It turns out the logging configuration is also present (and was missing) in the standalone.xml. I'm pretty confused now how log4j.xml and standalone.xml interact. Put an issue on my name to figure that out and clean stuff up. But the problem was that I was barking up the wrong tree.

Reply all
Reply to author
Forward
0 new messages