https://bugzilla.wikimedia.org/show_bug.cgi?id=42890
Web browser: ---
Bug ID: 42890
Summary: Add mw.logError, etc.
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
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).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l