Allow for debugging
-Please estimate this task-
Comprehensive debugging of WSSemanticParsedText should be available through turning on either:
$wgDebugLogFile = "$wikibaseDebugLogPath.log"
$wgDebugLogGroups = array('wsspt' => "$wikibaseDebugLogPath.log");
This will hopefully contribute to solving this customer ticket: https://pegadigitalit.atlassian.net/browse/KHUB-764
Output of logs
Please see: https://www.mediawiki.org/wiki/Manual:Structured_logging
Generally, debugging calls should be at the beginning and end of all functions created for the extension. Also, all calls to MW or functions of other extensions should be logged.
Debug output at the end of functions should also report their (self-calculated) execution time, measures from the call of the function to the resulting output.
Definition of Done
- No logs are created when debugging is not enabled through any of the MediaWiki functions
- When enabled, logs are created with a clear and concise structure adhering to best practices (see #Add_structured_data_to_logging_context) )
Edited by Ghost User