whatwg / console

Console Standard
https://console.spec.whatwg.org/
Other
271 stars 68 forks source link

feature request: add `console.color` #217

Closed idranme closed 1 year ago

idranme commented 1 year ago
interface color {
level: 0 | 1 | 2 | 3
noColor: boolean
bit4: boolean
bit8: boolean
bit16: boolean
}
terinjokes commented 1 year ago

I'm not sure this is something that makes sense for this specification. How logged messages are displayed to the user is up to the user agent, and the user agent may be displaying, storing, or transmitting messages to multiple sinks at the same time.

domfarolino commented 1 year ago

I'm in agreement. This, along with the already-available %c format specifier to provide CSS for console output makes me think there would be little vendor appetite for this, and that this probably best belongs not in this spec.