Manual:$wgDebugLogFile

Details
The file name of the debug log, or empty if disabled.

  appends to this file.