Manual:$wgDebugLogGroups

Details
Set to an array of log group keys to filenames. If set, wfDebugLog output for that group will go to that file instead of the regular. Useful for enabling selective logging in production.