Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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.

Document Tags and Contributors

 Contributors to this page: wbamberg, jsantell
 Last updated by: wbamberg,