console/plain-text

Unstable

Constructor for a console instance.

Usage

The plain-text console is a constructor for creating a console object to be used for traditional logging purposes. It's implemented using Console.jsm, and is prefixed with the addon's name, and log levels set based off of startup instruction. An instance of the console is injected globally into addon's contexts.

Globals

Constructors

PlainTextConsole(print)

Creates a console instance. All of its methods are inherited from Console.jsm (resource://gre/modules/devtools/Console.jsm).

Parameters

print : Function
An optional function to process the arguments passed in before printing to stdout.