Open jetbalsa opened 10 years ago
Something like this is definitely required. I haven't heard of the winston addon before but it looks like it could do the trick. It needs to be implemented properly using the categories feature so different log levels go to different files. And logging configuration needs added to the global config to specify the log rotating options and all that. Hopefully I will have time to implement all of that soon but I'm working on other features for now.
Thanks for pointing out this module and proof-of-concept!
Adding syslog capabilities might even be better, that way we could stream logs to another server.
so syslogging isnt hard now, use the logger command in linux to pipe to syslog
see logrotate :-)
On Wed, Aug 13, 2014 at 3:14 PM, jrwr notifications@github.com wrote:
so syslogging isnt hard now, use the logger command in linux to pipe to syslog
— Reply to this email directly or view it on GitHub https://github.com/zone117x/node-open-mining-portal/issues/80#issuecomment-52096185 .
I'm pretty bad at well.. Everything, but this does work well, and since console.log is not async and was slowing everything down, I did come copy paste of winston into libs/logUtils.js and this does fill blown logging now
run npm install winston before running this patch
https://gist.github.com/jrwr/11208229