$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
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
api: deprecate and deactivate $wgAPIRequestLog | mediawiki/core | master | +3 -52 |
Related Objects
Related Objects
- Mentioned In
- T359583: Provide a way to get sampled POST body logs
Event Timeline
Comment Actions
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.
Comment Actions
Change #1049234 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):
[mediawiki/core@master] api: deprecate and deactivate $wgAPIRequestLog