Skip to content

Duplicated pattern in console #2141

Answered by jamezp
sanova asked this question in Q&A
Dec 30, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

The reason you don't see it with log4j1 is JBoss EAP/WildFly use a forked version of log4j where the ConsoleAppender is updated to write directly to System.out. We do not fork log4j-core because WildFly itself does not ship with log4j-core, but its own implementation of the log4j-api which delegates to the jboss-logmanager.

Looking at the log4j2 ConsoleAppender, I do think using direct="true" would likely work. It's using the FileDescriptor which is effectively what the forked log4j1 ConsoleAppender is doing.

Note that with WildFly 27+ log4j1 is no longer included in WildFly.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sanova
Comment options

@ppkarwasz
Comment options

@sanova
Comment options

@jamezp
Comment options

Answer selected by ppkarwasz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants