Write the debug string into the log file