klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Clear Log deletes underlying data.

Open AJolly opened this issue 1 year ago • 2 comments

I was extremely confused/dismayed to learn that control-x "clear file" deletes underlying data.

I was expecting clear to mean clear the screen, as it has in other log viewers I've used before. ex: Visual Syslog. Clear, control-x, clears the screen.

ie - Clear the screen visually but still have new file entries come in. I would have never expected this to delete the underlying data.

When I asked for help in the chat, other users told me that Klogg could NOT delete. image

I suggest

the menu be updated to be clear that "clear" means delete. There be some way for me to clear the log visually.

Looking at this thread, it seems like this might have been intentional....but it was still extremely surprising to a new Klogg user.

https://github.com/nickbnf/glogg/issues/111

AJolly avatar May 21 '24 03:05 AJolly

The behaviour is intentional. The warning text could be improved to properly state that this operation will in fact remove the file content.

To clear the log visually could be a nice feature to have.

variar avatar Nov 15 '24 11:11 variar

Changed message in 24.11 releases

variar avatar Nov 20 '24 21:11 variar