PiRSquared17 / snaketail-net

Automatically exported from code.google.com/p/snaketail-net
1 stars 0 forks source link

Clear capture content #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 hutieu...@gmail.com on 11 Jun 2013 at 6:12

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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 hutieu...@gmail.com on 11 Jun 2013 at 1:22

GoogleCodeExporter commented 9 years ago
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