Prettify debug output
- Use
console.info
andconsole.error
forqInfo
andqCritical
, respectively - Add file name and line numbers, if available
- Use colored "Host" prefix instead of "From host"
Before:
After (release build, screwed up the text color in this screenshot)
After (debug build)
Tested in both Chrome and Firefox. Chrome does not show the (i)
prefix for console.info
but otherwise shows the message fine.
For compatibility with older extension versions, the action remains debug
and warning
, so those messages are never lost.