always-tail
always-tail copied to clipboard
node module for always tailing a file -- recovers gracefully if it gets moved, deleted, or rolled-over.
**Fix for a bug filed in following github issue:** Getting 'TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined' on tail.unwatch() #19 As per definition in https://nodejs.org/api/fs.html#fs_fs_close_fd_callback, **fs.close** expects a...
**Here's stack trace:** TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined at makeCallback (fs.js:168:11) at Object.close (fs.js:427:14) at Tail.unwatch (/home/komal/projects/zestl/source_code/TwigMeServerApplication/docker/clients/python_error_logs/api/node_modules/always-tail/index.js:164:10) at Socket. (/home/komal/projects/zestl/source_code/TwigMeServerApplication/docker/clients/python_error_logs/api/services/tail_file.js:22:14) at Socket.emit (events.js:327:22) at TCP. (net.js:673:12)...
Suppress `DeprecationWarning: Calling an asynchronous function without callback is deprecated.` when calling `fs.close` without a callback. I just added a nop function.
Hello, i have an exception with the code from readme when logfile get deleted. #> node --version v10.15.1 #> node tail.js got line: aaa got line: abc fs.js:137 throw new...
Just wondering if there would be a way to implement this library without polling for file changes? Would be a lot more performant, I think, thanks!
I note that the version of debug that always-tail relies on has a minor vulnerability filed against it. Can you update the dependency please? Here is the audit message. The...
Is there a way to tail multiple files? Or could that functionality be added easily to this project?
Hi! It seems that index.js is an output of some coffee script. I was wondering if you are open to share that original coffee script? Thanks
I am using this for tailing multiple files at the same time, and I was missing the ability to also log the file it came from, with this addition the...