nickbnf / glogg

A fast, advanced log explorer.
http://glogg.bonnefon.org/
GNU General Public License v3.0
1.17k stars 368 forks source link

LogFile of previous day getting deleted automatically #244

Open azeem-mohammed opened 6 years ago

azeem-mohammed commented 6 years ago

I find glogg as one of the best and fast log viewer.

However while using glogg I find the following issue which I find it major

Normal Scenario

I have a file named log-file.txt and I am using Log4Net for and the rolling profile is on a daily basis and hence at every midnight the file name log-file.txt will renamed as log-file.txt.yyyymmdd.log example:

On 30-Oct-2018 mid night 00:00:00 hours, a new file is created as log-file.txt and the file of 30-Oct-2018 will be renamed as log-file.txt.20181030.log

Issue Scenario

I keep the file log-file.txt open on 30-Oct-2018 mid night 00:00:00 hours, a new file is created as log-file.txt and the file of 30-Oct-2018 log-file.txt.20181030.log is getting deleted

so, in this case if the current day file is open with glogg, at mid night, the previous day's file is lost

Using

OS: windows server R12 glogg version: v1.1.4-x86_64

variar commented 5 years ago

This issue might be caused by #109

jkraft-s1a commented 5 years ago

I'm experiencing the same issue around Log4Net. In my case, our logs roll over when they reach a certain size. If I happen to have one open in glogg when this occurs, I experience a loss as described above.