I’m using: SWI-Prolog version 8.1.9 on Windows 8.1.
I use the logging to a file feature a lot to copy
write statement output to the logging file. My log sessions have become quite long so the output is quite verbose (which I want verbose). However, it takes about 15 to 30 seconds to complete the logging after executing the Prolog goal that I’m iterating during a programming session. My belief is that if I could temporarily turn off the output to the console so only the logging file receives the output from
write statements, things would execute a lot faster. I base that opinion on Windows apps I’ve written that write to a console window. Once I turned off echo to the screen the operations typically executed many times faster.
Is there an SWI-Prolog flag I can set to turn off output to the screen, while I’m outputting to a file, and then turn back on once I’m done outputting to the log file so that the console works normally again?
I previously asked the question below, which his how I learned to use
protocol to output to a disk file, but I don’t see anything about stopping output to the console in this post: