Created
February 15, 2022 15:36
-
-
Save zachelrath/7f652f899a8789a4de4e06f228a52b3f to your computer and use it in GitHub Desktop.
Log4j structured logging with a Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logger.info(new ObjectMessage(Map.of( | |
"totalItems", orderItems.size(), | |
"items", orderItems | |
))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment