If I do:
\message{^^J! my very long message that will be cut on many lines because LaTeX for some weird reasons like to manually cut the lines instead of letting the terminal do it^^J}
I will see something like this in the log:
! my very long message that will be cut on many lines because LaTeX for some we
ird reasons like to manually cut the lines instead of letting the terminal do i
t
But I'd like to prepend ! to all the lines, because TeXstudio will only print lines starting with a ! as errors. How could I automatically add a symbol when a new line is created in the log?
MWE
\documentclass[]{article}
\begin{document}
\message{! my very long message that will be cut on many lines because LaTeX for some weird reasons like to manually cut the lines instead of letting the terminal do it}
\end{document}
EDIT: to clarify, I'd like the log to contain:
! my very long message that will be cut on many lines because LaTeX for some we
! ird reasons like to manually cut the lines instead of letting the terminal do
! it
(or even better if it could break at word boundaries, but hey, lets not ask too much)

!to be on every line cf my edit). I'm thinking I could manually write my own\message{}that cuts the string in chunks, but there might be better solutions. – tobiasBora Dec 21 '23 at 22:59\message? – Steven B. Segletes Dec 21 '23 at 22:59!in front of any line in the log – tobiasBora Dec 21 '23 at 23:00\messageis a tex primitive you can not control its line breaking other than setting the line length to be very long so no line breaking occurs. – David Carlisle Dec 21 '23 at 23:05\messagein that case rather than\write? – David Carlisle Dec 21 '23 at 23:06\write-1{kkkk}or similar (\messageis a little weird as it doesn't force a linebreak per message), latex's\typeoutfor example is\writenot\message– David Carlisle Dec 21 '23 at 23:29