Answer the question
In order to leave comments, you need to log in
How can NodeJS access a file on a remote machine for processing by the Tail module?
A question.
Scripts are now running and constantly reading the file by the Tail module
const tail = new Tail(LOG_LOCATION, {
useWatchFile: true
});
tail.on("line", (data) => {
logsQueue.push(getLog(data));
treatLogs();
}).on("error", function(error) {
console.log('Ошибочка при чтении файлика: ', error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question