I\'m trying to code my own RewritePolicy in Log4j2. The documentation states that :
RewritePolicy is an interface that allows implementations to insp
Don't forget the Factory Method for your plugin or it will fail to start:
@PluginFactory public static MarkerInjectorRewritePolicy createPolicy() { return new MarkerInjectorRewritePolicy(); }
here's a working example on my github account: https://github.com/sercasti/Log4j-RewriteAppender/