$wgAPIRequestLog predates standardized structured logging in MediaWiki, and is basically superseded by ApiMain::logRequest() which provides the api (space-separated) and api-request (structured context) channels.
Description
Details
Related Objects
- Mentioned In
- T359583: Provide a way to get sampled POST body logs
Event Timeline
So this is asking to remove the code in ApiEntryPoint that ends up calling this:
LegacyLogger::emit( implode( ',', $items ) . "\n", $apiRequestLog );
We have a mechanism now that will warn people when running the updater if they have outdated config variables. We can use that.
Change #1049234 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):
[mediawiki/core@master] api: deprecate and deactivate $wgAPIRequestLog
Change #1049234 merged by jenkins-bot:
[mediawiki/core@master] api: deprecate and deactivate $wgAPIRequestLog
Change #1189184 had a related patch set uploaded (by Jforrester; author: Jforrester):
[mediawiki/core@master] Drop last traces of wgAPIRequestLog, ignored since 1.43
Change #1189184 merged by jenkins-bot:
[mediawiki/core@master] Drop last traces of wgAPIRequestLog, ignored since 1.43