loghooks-node
Simple helper to hook stdout, console log to remote clients, file, or custom function
Example
var hook = ;hook;
See the test-* files for examples
There are many logging modules out there, but you may have used console.log, or stdout in existing code, right?
You would have to go back and rework that.. OR.. Just hook stdout with this module.
Supported are:
TCP client (connect to your app remotely for live log updates over telnet)
hook;
TLS client (like TCP but encrypted using tls/ssl)
hook;
File (just write to a file)
hook;
Uncaught (hook uncaught exceptions)
hook;
Custom functions (use your function to handle console.log)
{ // note stdout was hooked, not stderr.. processstderr;} hook;