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
Try this, if you want to log to the active page's console:
chrome.tabs.executeScript({ code: 'console.log("affffd")' });