Von: Piotr P. Karwasz <pi...@mailing.copernik.eu> Gesendet: Dienstag, 6. Mai 2025 15:29 An: log4j-user@logging.apache.org 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: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org