Last modified: 2012-12-09 23:19:11 UTC
It would be useful to add some variants of mw.log to mediaWiki.log. A possible list is: mw.logError mw.logDebug mw.logInfo mw.logWarn The point of this is that various consoles (Firebug, Chrome, etc.) visually distinguish between the types and/or let you filter on them. The most useful of them would be logError, since it is usually clearly distinguished and people sometimes filter to only show errors. These could all work by delegating to console.error, console.debug, console.info, console.warn. If that method didn't exist, they would fall back on mw.log (which in turn has its own fallback).
(Moving to JavaScript since this is not related to the ResourceLoader framework, but one of the javascript modules "mediawiki.log"). What would be the use case / purpose of this? Also, for modularity, this would be mw.log.error not mw.logError, don't extend the root space.
Consoles often let you filter to see only errors (other types too), and they are usually visually flagged in red. So, it's useful to allow our code to mark messages as an error. The same applies to the others (e.g. debug), but to a lesser extent.