Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 633 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 633 Bytes

#tailed

Build Status

under development

example

var tailed = require('tailed');

var logFilePath = __dirname + '/logs/development.log';

tailed(logFilePath, function(err, tail){
  if(err) { /* error handling code */ }

  tail.on('data', function(data){
    console.log(data);
  });
});

note: API is still in flux

things tailed handles

  • any encoding supported by node buffers
  • tailed files getting truncated while being tailed
  • tailed files getting deleted while being tailed (tailed emits error for now)