carterkozak commented on pull request #454: URL: https://github.com/apache/logging-log4j2/pull/454#issuecomment-755384944
> Just to make sure we are on the same page, what do you exactly mean by the template model? Do you mean converting, say, event template additional fields to a template resolver? I think that's close (or the same, but I'm not articulating my idea well!). In my mind a template resolver is able to produce a single component (json number, string, object, or array) which doesn't quite align with additional properties, because they apply to a separate component. Adding additional fields could work by passing the data through to `JsonReader.read(template)` to supplement the template, though you would have a better idea than I do where the correct place for this would be! I think expanding the root property into a TemplateResolver would be feasible since it doesn't modify an existing object. I wonder if the object-specific values could be passed to the template parsing code without being part of the more general context object? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
