Xsession or xinit should install a filter on stdout/stderr that checks every line in the output, so that if the same line is written repeatedly, they'd display something like:
<$REPEATED_ERROR_MESSAGE_PRODUCED_BY_WHATEVER_APPLICATION>
$date - Xsession: last message repeated 1.000.000 times
Pulseaudio does something similar, producing entries like this in syslog:
Nov 9 10:35:42 alkisg pulseaudio[2031]: last message repeated 7000 times
Xsession or xinit should install a filter on stdout/stderr that checks every line in the output, so that if the same line is written repeatedly, they'd display something like:
<$REPEATED_ ERROR_MESSAGE_ PRODUCED_ BY_WHATEVER_ APPLICATION>
$date - Xsession: last message repeated 1.000.000 times
Pulseaudio does something similar, producing entries like this in syslog:
Nov 9 10:35:42 alkisg pulseaudio[2031]: last message repeated 7000 times