js-logger
js-logger copied to clipboard
Support non-standard console methods
I would like to use js-logger with console.group. I know it's not standard, but I don't see why js-logger couldn't implement all console methods available in the current environment.
+1
chrome's console is awesome and I don't know if i can not use some features like console.group, color (console.log('%c solething', 'color:blue')) ...
My idea for coloring is that you want to abstract it out so you can have it work on node as well as browsers that support it. E.g.:
import { blue } from 'ucolor'
log.info(blue('something'))
I think it should be in a separate library. Something like colors or chalk that works universally. I once reserved the NPM namespace ucolor for it, but I never got around to implementing it.