Is there a way to do something like:
console.log(\"hello world\", \'#FF0000\')
in Chrome/Safari or Firefox ?
You with the following snippet you can use the console.log command as you wished!
(function () {
$consoleLog = console.log;
console.log = function ($message, $color) {
$consoleLog('%c' + $message, 'color:' + $color + ';font-weight:bold;');
}
})();
console.log('test', 'green');
OR
https://jsfiddle.net/mL88u3n9/