0

How do I style and entire console.log? "%c Text", "style" obviously works for strings, however that only works on the text in the string after the "%c" and not for objects etc, In my case I'm creating a new function for specific cases, e.g.

var fancyLogger = function(){
    var newSet = [
        "FancyLog",
        window.specificItem,
        ...arguments // includes non-strings
    ];
    // This but with say font-size: 300%
    console.log.apply(console, newSet);
};

EDIT: To confirm, I don't want to change the styling on the whole console. EDIT2: I also need to change mroe than just colour so bash flags won't work here.

Gianthra
  • 306
  • 2
  • 9

0 Answers0