Logs, cap and replace new lines with ⏎
To avoid flooding the console with long messages :
- cap messages to 10000 chars
- replace the new lines with the “⏎” char
- replace after the 10th new line
(from redmine: issue id 3319, created on 2023/01/05 by Matthieu Decorde)