For small wikis which do not want to install Sentry or another error logging solution, provide simple error logging via the standard API.
|Duplicate||None||T91728 Make Sentry useful for 3rd-party wikis|
|Open||None||T106911 Use Sentry on non-Wikimedia MediaWiki wikis|
I'm not terribly fond of the idea of strange, special-purpose internal endpoints in the public API.
What exactly is supposed to be logged here, and why can't a small site that wants this logging information install "Sentry or another error logging solution"?
It does not have to be special-purpose though, could be a generic log API (as in MWLogger, not LogPage).
OTOH, there's a difference between essential services and something like this that the site will continue to work perfectly well without.
Keep in mind the possibility of a malicious user using this facility to try to flood logs, BTW.