Hi all, I wonder if you would be interested in an access log "function" enabling to make an access log element a valid json string.
Idea is to enable to have access logs patterns producing valid JSON whatever the dynamic string content, maybe something like "key":"jsonEscaped(%r)",.... or more tomcat style: "key":"%{json}r)",.... What do you think? Is it worth proposing something or is it always handled differently in your opinion (I tend to workaround it today so not 100% sure it would be accepted if I do a PR)? Another location which would benefit from some json encoding is org.apache.catalina.valves.JsonErrorReportValve#report since currently it produces invalid json depending the message value. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>