Instead of extending the plugin classes, you can create your own
plugins. PatternConverters are relatively trivial plugins, so I
wouldn't worry too much about code duplication.

I could be missing a feature, though.

On Thu, 16 May 2019 at 09:32, Gaurav <gaurav9...@gmail.com> wrote:
>
> Hi,
>
> I want to hide the message in the throwable.
>
> What I've tried -
> 1. Create a custom layout by extending AbstractStringLayout.
> 2. Create a pattern parser.
> 3. Create a pattern converter by extending ThrowablePatternConverter.
>
> Is there a simpler way to do this?
>
> In log4j1.2, it was simple to just extend the classes, but the classes in 
> log4j2 are final.
>
> Please assist.



-- 
Matt Sicker <boa...@gmail.com>

Reply via email to