zone117x / node-open-mining-portal

A scalable all-in-one easy to setup cryptocurrency mining pool and portal written entirely in Node.js.
GNU General Public License v2.0
1.02k stars 1.03k forks source link

Disk Based Logging (Patch) #80

Open jetbalsa opened 10 years ago

jetbalsa commented 10 years ago

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

zone117x commented 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!

azamatms commented 10 years ago

Adding syslog capabilities might even be better, that way we could stream logs to another server.

jetbalsa commented 10 years ago

so syslogging isnt hard now, use the logger command in linux to pipe to syslog

sigwo commented 10 years ago

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 .