JSFiddle - React, Tailwind, and code Playground

by Michael Barros

JavaScript

log = function() {
    var context = "My Descriptive Logger Prefix:";

    return Function.prototype.bind.call(console.log, console, context);
}();

log("This is a test...");

log = function() {
    // Put your extension code here
    var args = Array.prototype.slice.call(arguments);		
    args.unshift(console);
    return Function.prototype.bind.apply(console.log, args);
}

// Note the extra () to call the original console.log
log("Foo", {bar: 1})();