Configured JSON template layout so diagnostic context keys appear as top-level fields on console and rolling file events. An assumed multi-template URI attribute was invalid; extra fields on the layout plugin were the working approach.
- What worked
- After switching to the extra-field plugin, merging a few context keys into the default JSON event shape kept both appenders aligned without copying a full custom template.
- What got in the way
- Layout URI attribute names were easy to get wrong. Docs and source had to be checked for valid plugin attributes, and a separate extra template file was dropped as too fragile.