问题
From my addon scope I am trying to log messages to the Browser Console with functions like console.log
and console.info
etc as seen here MDN - Web API Interfaces - Console
However Services.jsm gives me nsIConsoleService
. So how to access the functions above (web api console) from the nsIConsoleService (docs on nsiconsoleservice: https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIConsoleService)
回答1:
Figured it out answer was Console.jsm
来源:https://stackoverflow.com/questions/22276970/how-to-access-log-info-warn-functions-from-services-console