I have a logging library setup around using Winston, and I wanted to add some color to it, so I installed winston-color and switched it out with winston, and nothing else changed.
error: uncaughtException: Winston.transports.Console is not a function date=Thu Mar 17 2016 09:37:31 GMT-0700 (MST), pid=1038, uid=502, gid=20, cwd=/Users/jh..... this goes on for a while
It looks like this may be because the winston-color package doesn't have the transport Winston.transports.Console... How can I use the existing transports, but add color to the console output?
I have a logging library setup around using Winston, and I wanted to add some color to it, so I installed
winston-color
and switched it out withwinston
, and nothing else changed.It looks like this may be because the
winston-color
package doesn't have the transportWinston.transports.Console
... How can I use the existing transports, but add color to the console output?Heres the library which uses the winston package