Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add log4j2 xml-based config support #900
This allows the use of the log4j2 InstrumentedAppender without needing code-based config. ie:
For the most part, this was simply a matter of adding the right log4j2 plugin hooks.
However, I ended up adding a new constructor because the concept of the appender name and the metrics prefix were tightly coupled. This was an irritation because the appender name is used as the logger reference in the XML config.
Please note that this is a patch against 3.1-maintenance. I wasn't sure where most development is occurring and what the best place to put it would be.