0.0.0 • Published 11 years ago
log-reader v0.0.0
log-reader
API
reader = LogReader(filename)
Initialize a log reader given the specified filename.
reader.read(callback, depth)
Start to read the log into a stream. depth
allows you to stream less
than all of the log. Calls callback
with err, path
.
Example
var reader = new LogReader(options.log).read();
return function(cb) {
reader.read(function(err, path) {
if (err) throw err;
return cb(formatter(path));
});
};
0.0.0
11 years ago