rem: consoleService.logMessage(aMessage); 
add:   if (level) { if (level == 1) {  level = 1; } else /*if (level == 2)*/ {  level = 0; } var consoleError = Components.classes["@mozilla.org/scripterror;1"] .createInstance(Components.interfaces.nsIScriptError); consoleError.init(aMessage, null, null, 0, 0, level, "XUL javascript"); consoleService.logMessage(consoleError); } else { consoleService.logStringMessage(aMessage); } 
context: function GM_log(aMessage, level) {  var consoleService = Components.classes["@mozilla.org/consoleservice;1"]                       .getService(Components.interfaces.nsIConsoleService);  consoleService.logMessage(aMessage);}
meta: 4585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4585/a3e04b00563e4e59df94f7c56e849624ee90ab08/greasemonkey.js/clean/src/content/greasemonkey.js