Assuming the question is about fixing the width formatting of the windows command window when copying text directly from that:
Have you tried :
then when ready.
setoption name Debug Log File type string default
All subsequent commands should be executed, echoed in command window and the output file, as well as all output from SF.
It actually works, and I verified that the CRLF correspond to each SF output lines, not those of the DOS window maximal width.
"type string default"?
need to carefully read the UCI protocol, excerpted here:
- setoption name [value ]
this is sent to the engine when the user wants to change the internal parameters of the engine. For the "button" type no value is needed. One string will be sent for each parameter and this will only be sent when the engine is waiting. The name of the option in should not be case sensitive and can include spaces like also the value. The substring "value" and "name" should be avoided in and to allow unambiguous parsing,
for example do not use = "draw value".
In other words, after deduction and testing, write without the quotes (there to emphasize what is required in using the uci definition above)
"Setoption name Debug Log File" "value" YouroutputFilepath
YouroutputFilepath = typical windows path including filename.
or just a file name for a file in your Stockfish executable folder.