The code that ends or replaces the process already includes Shutdown.hpp,
so LogFileFlush_nid_no_patch and LogFileRelease_nid_no_patch are declared
there instead of in LogFile.hpp, which only the log copy and its test
include.
The log a user attaches to a bug report is only on the terminal. When
ANYPS5_LOG_FILE is set and not empty, libc now opens the file for
appending at load, diverts standard output and standard error into two
pipes and starts one thread per pipe that writes every byte to the
original stream at once and every whole line to the file. A lock makes
the file lines atomic across the two streams, a partial line waits for its
newline, and a file that can no longer be written is reported once while
the terminal output goes on. An unopenable file prints an error naming
ANYPS5_LOG_FILE, the path and the operating system error, and ends the
process with status 1. Unset or empty creates no thread, pipe or
descriptor. Crash reporters and exit paths are not wired yet.