If I call console.log(\'something\'); from the popup page, or any script included off that it works fine.
console.log(\'something\');
However as the background page is not directly
To get a console log from a background page you need to write the following code snippet in your background page background.js -
chrome.extension.getBackgroundPage().console.log('hello');
Then load the extension and inspect its background page to see the console log.
Go ahead!!