Open cibersheep opened 5 years ago
I have found that you can append some text to the element.
So, maybe, you could append the lasts strings of the updated file:
splitting by "\n" and iterating the updated log text, getting last lines until is equal to the last line of the element?
Even better: keeping track of the last index of the "splited" text?
having a last index of x, you could iterate var text = updatedLogText.split("\n")
from text[x] to text[text.length]
and then x = text.length again for the next update
When viewing long logs TextEdit performances is slow. Two ways of handling this might be: