Sublime Forum

Reading log files without blinking

#1

Hello, folks!
I recently asked about reading log files—thank you for your responses—but it turned out to be not so simple.

The thing is, Sublime reads the entire file when it updates, and if syntax highlighting is enabled, it processes the text as well.
This results in the text in the window flickering terribly.

Watching this for more than a minute is practically impossible; it feels like your brain gets launched into outer space.

So, here’s the question:
Is it possible to make log files only read the lines added after the existing content?
Although that’s not even the main issue.

What was the purpose of stopping text from displaying during an update (of any kind)?
Why show a file-loading progress bar when the content is already on the screen?
Can it be set up so that new lines are added to the field during updates without the old ones disappearing?

Or maybe there’s some setting I don’t know about that would resolve this?

By the way, if anyone knows any other way to solve my problem, I’d be super grateful for any ideas.

I recorded a short video—you can watch it a couple of times in a row—and I think I’m not the only one who’ll have mixed feelings about it.

https://youtu.be/cck_0Q9udtQ

0 Likes

#2

It’s not feasible to track whether files have only had lines added to them, but you can achieve the same thing using the command line: tail +1f /var/log/syslog | subl -.

0 Likes