GM log

From GreaseSpot Wiki
Revision as of 19:14, 19 March 2007 by 81.230.12.60 (talk) (Removed level argument - apparently not supported, see discussion.)
Jump to navigationJump to search

Template:Underscore

Syntax

GM_log( message )

Description

Allows script authors simple access to logging informational messages in the Error Console. This can be helpful for debugging.

The message string is required.

Examples

GM_log("Hello, World!");
GM_log("Warning, " + someInputField.value + "!");

Notes

GM_log is available in Greasemonkey version 0.3 and later.

GM_log and Firebug

Since Firebug 1.0, extensions.firebug.showChromeMessages must be set to true for GM_log messages to show up in the Firebug console.