I suggest you to change \n into \r\n\t so newlines will appear properly in notepad.
Also, since we already have the same in the Jass Section, you shall make your code unique or something: I suggest you to change your script to be able to handle more than one debug log files, for instance every system could have its own debug log at its own specified path, but you can still have a map specified instance( at ID 1 or something ) which every script can use. Also you should have some limitations for string length, or make it auto break the strings into 240 sized parts so long messages won't get cropped. Last but not least, change the path of the output at config not to "C:\\" but to "Map Errors\\Log.txt" so it will output it to C:\\Blabla\Warcraft III\Map Errors\Log.txt. Also you might want to make the output file name configurable, so overwriting other's dumps will less likely happen.