snaketail-net
snaketail-net copied to clipboard
Clear capture content
It would be very nice if SnakeTail can provide a button to clear current
capture content. I work with large server log files a lot, I want a fresh view
every time the server restarts, so the log content is not mixed with info from
last server running session. Currently I have no choice but delete server log
files manually on each server restart which is rather tedious.
What version of the product are you using? On what operating system?
SnakeTail 1.8.2 on Win7 x64
Original issue reported on code.google.com by [email protected] on 11 Jun 2013 at 6:12
So something like only display the last 1000 lines from the log file, instead
of loading the entire log file ?
Original comment by sweaty1 on 11 Jun 2013 at 6:36
Yes, I meant when clicking clear button, all log content in window is cleared.
New content from that point on sill continues to get appended to the window.
Say the log file has 1032 lines, I click clear, the window becomes empty, only
content from line 1033 will be shown in the window from that point on. So the
idea like showing from the point when clear button is clicked. Hope that my
explanation does not sound circle to you :D.
I found this feature missing when switching from Windows Tail
(http://sourceforge.net/projects/tailw) to SnakeTail. SnakeTail has almost
everything I wish for a tail utility but this functionality.
Thanks for attention.
Original comment by [email protected] on 11 Jun 2013 at 1:22
It would require a special log streamer, that is able to start from a certain
file-position.
A simple work-around would be to register an "External Tool" inside SnakeTail,
where the external tool (batch file) just renames the current open file (Ex.
Server.log -> Server.{DateTime}.log)
Original comment by sweaty1 on 1 Aug 2013 at 9:03
Here another user who would like this feature.
I'd like this as well. Perhaps as an alternative to the special streamer is to just simply clear all ListItems currently shown but not reset the cursor in the file handler. Of course this wouldn't persist across restarting the application, but that's fine.
I also would like to have this feature if it's possible please :)