Another alternative is to use the Java DSL:
https://logging.apache.org/log4j/2.x/manual/customconfig.html
Then you can reuse normal variables when setting values.
On Fri, 20 Nov 2020 at 09:43, Stig Rohde Døssing wrote:
>
> Thank you, did not know about RoutingAppender. Will definitely look into
Thank you, did not know about RoutingAppender. Will definitely look into
that. Good to know that wrapping like this is a known pattern.
On 2020/11/20 14:15:53, Matt Sicker wrote:
> That plug-in wrapper pattern will always work. Maybe creating properties
to>
> reference as variables is an option?
That plug-in wrapper pattern will always work. Maybe creating properties to
reference as variables is an option? There might be a way to structure your
configuration to use routing appenders or something like that to minimize
duplication, too.
On Fri, Nov 20, 2020 at 05:07 Stig Rohde Døssing
wrot