jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Introduce proper logging mechanism #168

Closed th3l0g4n closed 9 years ago

th3l0g4n commented 9 years ago

I think it is useful to implement a more suitable logging mechanism. As libraries I would suggest something like: https://github.com/trentm/node-bunyan https://github.com/flatiron/winston

jansmolders86 commented 9 years ago

Very nice. this is essential if MCJS is ported to something like Node webkit. I looked at Winston a while back. Do you have a preference?

th3l0g4n commented 9 years ago

I've used winston several times. I prefer it over bunyan as you can decide whether to log as json or string but also have several transports per logger/loglevel. Pretty handy.

jansmolders86 commented 9 years ago

Cool! I'm sold :)! I've put it on Trello and will start implementing this right away

jansmolders86 commented 9 years ago

Just pushed winston into master!