'How to show complete log messages on Spring-boot

Most of the messages I looked at in the history are about disabling certain aspects of the log. I'd like the opposite. I'm seeing lots of messages like:

" DEBUG o.s.w.s.m.m.a.HttpEntityMethodProcessor.traceDebug (91) - Writing [" <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2. (truncated)...]"

I'd like to see the entire, non-truncated, (in this case) RSS feed. Any idea how I can persuade Spring/Logback/console/maven to do this?

Bonus question -- how would I write a test to verify that the logs are actually not truncated? I don't have them persisted in any way, just on the console. Many thanks!



Solution 1:[1]

You could also set the TRACE logging level on the HttpLogging entity like this:

logging.level.org.springframework.web.HttpLogging = TRACE

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Louis