Skip to content

Allow for nesting of map entires under a single key #503

Answered by philsttr
stvb-cg asked this question in Q&A
Discussion options

You must be logged in to vote

Try this (using a structured argument)...

        log.debug("Request/Response info", kv("debug_http", Map.of(
                "request_method", request.getMethod(),
                "request_uri", request.getURI()
        )));

or this (using a marker)...

        log.debug(Markers.append("debug_http", Map.of(
                "request_method", request.getMethod(),
                "request_uri", request.getURI()
        )), "Request/Response info");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stvb-cg
Comment options

Answer selected by philsttr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants