Manual:$wgDebugLogFile

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

The debug log file should not be publicly accessible if it is used, as it may contain private data.