Why is Log4j2 JsonLayout + KeyValuePair printing empty logEvent messages
问题 TL;DR If I'm using JsonLayout with a nested KeyValuePair in my log4j2.xml config the resulting log messages are empty. Any ideas why? Long Story I'm using Tomcat 8.5.43 with the following logging related JARs: jackson-annotations-2.9.7.jar jackson-core-2.9.7.jar jackson-databind-2.9.7.jar slf4j-api-1.7.25.jar jcl-over-slf4j-1.7.25.jar log4j-api-2.12.0.jar log4j-core-2.12.0.jar log4j-jul-2.12.0.jar log4j-slf4j-impl-2.12.0.jar tomcat-extras-juli-8.5.2.jar (as tomcat-juli.jar in /bin) tomcat