how to make logger for cookies to notify when a cookie gets updated or deleted/created

I need some logger that can log timestamp and cookie activity (when a cookie gets updated or deleted/created) when I surf over the webpage.
There is a browser.cookies.onChanged in https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies/onChanged but its only for extensions, browser object itself is not available in chrome console. Is there any way to run the js code in the console to do this or are there any other ways? Maybe there is a extension for this already?