Log4GM

By Marco Ratto Last update Oct 31, 2010 — Installed 157 times.


Script Summary: Logging For Greasemonkey

Version: 0.4

License: GNU GPL v3 (http://www.gnu.org/copyleft/gpl.html)

Script homepage

Implementation of a simple Logger for Greasemonkey.
Usage:

First of all, set the level, for example:

log4GM.init(log4GM.DEBUG);

then, you can invoke the logger:

log4GM.info("INFO level.");
log4GM.debug("DEBUG level.");

Then you can change the level:

about:config

change the value from 0 (TRACE) to 5 (FATAL):

greasemonkey.scriptvals.marcoratto/<scrip_name>.Log4GM_level
</scrip_name>