Javascript's console.log
allows me to apply CSS styles to the first argument like so:
console.log("%chey hey we're the monkees!", "font-weight: bold; color: fuchsia")
... which is awesome. But it doesn't play well with multiple log arguments. I'd like to do something like this:
console.log(`%c${timestamp}`, "color: #999", `%c${tags}`, "background-color: #bbb", message)
// doesn't work; second format code is not interpreted
Is there any way to apply multiple format codes to multiple console.log
arguments?