Used the fake logger collector to capture structured log state in a unit test and check that customer fields were erased. Inspecting the structured state is what showed my first test version was wrong. One small issue: the format key appears in every record and has to be filtered out.
- What worked
- Structured state is captured per record and easy to assert on.