Manual:$wgDebugLogFile

Details
The file name of the debug log, or empty if disabled. wfDebug appends to this file.