Skip to content

Attribute 'additivity' is not allowed to appear in element 'Logger' #3696

Answered by ppkarwasz
jorge683 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jorge683,

Yes, this is indeed a bug — tracked here: apache/logging-log4j-tools#135 — in the Log4j Docgen tool, which we use to generate the XML Schema from source code.

It's important to note that Log4j configuration files are inherently schema-less by design. Here’s why:

  • Extensibility via Plugins: Log4j Core is highly extensible — all components are implemented as Log4j Plugins. This means users can define custom plugins that the official schema won’t recognize. The published schema only includes plugins maintained by the Apache Logging Services project.

  • Conditional Configuration with Arbiters: Log4j supports a feature called arbiters, which allows XML elements to be conditionall…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vy
Comment options

vy Jun 3, 2025
Collaborator

Answer selected by jorge683
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