Translations:Manual:How to debug/29/en

To create a custom log file that only holds your specific debug statements, use the  function (use of wfErrorLog was deprecated in MediaWiki 1.25). This function takes two arguments, the text string to log and the path to the log file: