Since all legacy EventLogging schemas have been removed from the production codebases, mw.eventLog.logEvent() is just a proxy for mw.eventLog.submit(). It should be deprecated in order to narrow the EventLogging JS API.
We should also consider deprecating mw.eventLog.sendBeacon() at the same time. There is one use of the method outside of EventLogging, which could be cleared up easily.
TODO
- Decide how to handle indirect calls of .logEvent() (i.e. calls to mw.track( 'event.Foo' ))
- See T317874#9254297
- Migrate direct calls of .logEvent() to .submit()
- Hard deprecate .logEvent()
- Remove .logEvent() after the next MediaWiki release