kango.console

Summary

Name Description
log Log a message to the browser console

Methods

log

kango.console.log(message)

Outputs string to the browser console.

Arguments:
  • message (string) – text to show in the browser console

Example:

kango.console.log('Hello world!');

See logs

Chrome

Background page logs:

  • Tools -> Extensions
  • Enable “Developer mode”
  • Find your extension and click to “background.html”
  • Open “Console” tab

Content script logs:

  • Click “Inspect element” on web page
  • Open “Console” tab

Firefox

  • Tools -> Web Developer -> Error Console (or press Ctrl+Shift+J)

Safari

Background page logs:

  • Developer -> Show Extension Builder
  • Find your extension and click to “Inspect Global Page”
  • Open “Console” tab

Content script logs:

  • Click “Inspect element” on web page
  • Open “Console” tab

Internet Explorer

  • Add “debug”: true to extension_info.json
  • Console window appears automatically on first kango.console.log call