question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

From Beginning Appears to be always on

See original GitHub issue

I apologize if I’m misunderstanding the purpose of this library, but currently if I’m tailing a file and create a new line, it will tail from the beginning by default. Even if I set the option fromBeginning to false this remains. This is the code I’m currently using:

Tail = require('tail').Tail;

tail = new Tail("fileToTail.txt", {fromBeginning: false});
 
tail.on("line", function(data) {
  console.log(data);
});
 
tail.on("error", function(error) {
  console.log('ERROR: ', error);
});

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbrown2642commented, Jul 2, 2018

Also on Mac, using your terminal command worked for me. I was originally adding lines through VSCode which it appears must save files in a way that makes node think each line is being generated again. Apologies for the confusion.

0reactions
lucagrullacommented, Jul 2, 2018

Glad to hear it’s working as expected. I’ll close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the Always On feature with your Apple Watch
How to manage the information that appears when your wrist is down · Open the Settings app on your Apple Watch. · Tap...
Read more >
Always on display - Wikipedia
Always on display is a smartphone feature that has the device continue to show limited information while the phone is asleep. It is...
Read more >
iPhone 14 Pro Always-On Display: How it Works ... - MacRumors
The iPhone 14 Pro and iPhone 14 Pro Max feature an always-on display for the first time on iPhone, which lets users glance...
Read more >
Start the presentation and see your notes in Presenter view
In Presenter View, you can see your notes as you present, while the audience sees only your slides.
Read more >
OnUnityAdsShowFailure is triggered always on first run when ...
This happens whenever the Unity Ads cookie dialog appears when the user taps to watch an ad for the first time after install....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found