rem: var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); 
add: var consoleService = Components.classes["@mozilla.org/consoleservice;1"]        .getService(Components.interfaces.nsIConsoleService); 
context: function GM_log(aMessage, level) {  // TODO: -make a GM category  //       -record script name  var consoleService = Components.classes["@mozilla.org/consoleservice;1"]                       .getService(Components.interfaces.nsIConsoleService);  // level == 0 or not present means info  // otherwise, create a ScriptError and map level to it's flag values  if (level) {    if (level == 1) {      // warning      level = 1;    } else /*if (level == 2)*/ {      // error - currently fallback      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);  }}
meta: 9744	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9744/0ffe0d13bc268a9071251a057c30ab9ba398fe0b/greasemonkey.js/clean/src/content/greasemonkey.js