After researching I found out that window.console or console should be bound and add my prefix variable as an argument.
Here is the full documentation of .bind if you’d like to read more about it. If not here’s a quick snippet
function.bind( thisArg [, arg1[, arg2[, ...]]] )
A working example can be found at codepen