Write to log without wrapping
Output file line wrapping is controlled by the max_print_line
setting in texmf.cnf (for TeX Live, miktex may have another system that I do not know).
The default setting is:
max_print_line = 79
I am pretty sure the wrapping behaviour is hardwired in TeX itself. Why can't you simply write to a separate file instead?
\newwrite\mylog
\immediate\openout\mylog=\jobname.mylog