Structured JSON logging for a legacy Java app on Kubernetes — without forking the image

How to retrofit machine-parseable JSON logging onto a legacy Java app on Kubernetes — both log4j2 and Tomcat’s JUL — without forking the vendor image, as an opt-in, fail-open, cleanly revertible layer.

April 22, 2026 · 6 min