lib/stdlog.js
function logReadableStream(stream) {
        var encoding = "utf8";

        stream.setEncoding(encoding);

        stream.on("data", function (chunk) {
            writeToLog(chunk, encoding);
        });
    }
function logReadableStream(stream) {
        var encoding = "utf8";

        stream.setEncoding(encoding);

        stream.on("data", function (chunk) {
            writeToLog(chunk, encoding);
        });
    }
function logReadableStream ( stream ) { var encoding = "utf8" ; stream . setEncoding ( encoding ) ; stream . on ( "data" , function ( chunk ) { writeToLog ( chunk , encoding ) ; } ) ; }
Listen for data on a readable stream, write to the log file

@param {stream.Readable} stream
Listen for data on a readable stream write to the log file