js-logger icon indicating copy to clipboard operation
js-logger copied to clipboard

Support non-standard console methods

Open zacklitzsinger opened this issue 9 years ago • 2 comments

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.

zacklitzsinger avatar Oct 04 '16 23:10 zacklitzsinger

+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')) ...

nusson avatar Oct 27 '16 17:10 nusson

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.

Download avatar Mar 10 '19 12:03 Download