Namespace: log

jMod.API. log

A logging interface that allows safe console interactions. It can handle permission/scope problems and multiple console instances.

Multiple consoles - Userscripts executing before the DOM exists (@run-at document-start) can cause some problems with the console. Sometimes firebug is unavailable at document-start and console commands are only run by the Web Console. But once firebug initiates, it can be greedy and the Web Console no longer runs your console commands. So you wind up with two windows, each with half the information.

This logging interface fixes these issue by isolating the individual console instances, and making sure the maximum amount of information is sent to each of them

It also features varying Verbosity Levels and specific functions can be enabled / disabled.