GM log

From GreaseSpot Wiki
Revision as of 12:11, 3 November 2006 by Arantius (talk | contribs) (Starting from: http://greasemonkey.mozdev.org/authoring.html)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

GM_log( message, level )

Description

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

Level is optional and defaults to 0. Valid values are:

0
info
1
warning
2
error

Examples

GM_log("Hello, World!");