Which logging pattern for LogBack in Spring Boot does indent messages with newline chars?

Viewed 187

LogBack as logger in Spring Boot uses a quite powerful and sophisticated pattern language to configure how logs should look like. Yet, I have not found how to get following configuration done: Some log messages report very detailed state. I would like to collect everything as one multi-line string and write that to the logs so that the lines are indented:

Target logging

To separately log lines of a message in a multi-threaded smells, because the message is not hold together: Current logging

0 Answers
Related