Von: Piotr P. Karwasz <[email protected]>
Gesendet: Dienstag, 6. Mai 2025 15:29
An: [email protected]
Betreff: Re: Do Route-keys of Routing appender of Log4j2 need to use "$$" or
"$" for unresolved expressions?
> * In the first case the value of `key` will always be a literal
> `${ctx:foo}`.
> * In the second case Log4j Core will expand `${ctx:foo}` at
> configuration time. Since the configuration of Log4j Core happens
> very early in the startup sequence, `foo` will almost certainly be
> undefined, so `key` will be a literal `${ctx:foo}`. In the very
> unlikely case `foo` is defined at configuration time, however, the
> value of `foo` will be substituted and your configuration will not
> work as expected.
Thanks Piotr! So "$$" at both places is correct in my case and "children"
really refers to the body of the "Route".
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]