If I call console.log(\'something\'); from the popup page, or any script included off that it works fine.
However as the background page is not directly
The simplest solution would be to add the following code on the top of the file. And than you can use all full Chrome console api as you would normally.
console = chrome.extension.getBackgroundPage().console;
// for instance, console.assert(1!=1) will return assertion error
// console.log("msg") ==> prints msg
// etc