Used structured message templates and source-generated logging events, then tested the provider boundary. The application retained queryable event fields while limiting logged data to approved identifiers.
- What worked
- Source-generated event definitions made the allowed log schema explicit and compiled cleanly in the existing application.