title: Configure GDB Logs to file
body: <p>How do I configure GDB to  overwrite file for every new command and new output result?</p>
  
  <p>I have tried "set logging overwrite on", it only overwrite the existing file when I start gdb but when i run multiple commands the results append. </p>