#1 2015-02-25 16:05:35

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Exception opening Rotated synlz LogFiles

Hi Arnaud,

today i testet TSynLog with
RotateFileCount := 10
RotateFileSize := 10;

If i open the synlz Files in LogView, only the very first can be opened.
All other LogFiles raise an Exception.

I stopped Loggging after 3 Files where created:

lf.3.synlz <-- Exception
lf.2.synlz <-- Exception
lf.1.synlz <- No Exception

If you run around all files could not be opened.


Rad Studio 12.1 Santorini

Offline

#2 2015-02-25 19:38:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: Exception opening Rotated synlz LogFiles

I just tried, without any problem.

Did you recompile LogView.dpr?
What is the Exception?
What does the debugger show?
Note that if the file is very small, it does not make much sense.

Offline

#3 2015-02-26 13:48:34

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Exception opening Rotated synlz LogFiles

Hi Arnaud i sent you my synlz files via EMail

The Exception is at

:775f4598 KERNELBASE.RaiseException + 0x48
:0040a524 NotifyNonDelphiException + $1C
:77820283 ;
LogViewMain.TMainLogView.EventsListClickCheck(nil)
LogViewMain.TMainLogView.BtnFilterMenu($219D390)
LogViewMain.TMainLogView.SetLogFileName('C:\projekte\delphi\vcl\mORMot\SQLite3\Samples\11 - Exception logging\ICMService.1.synlz')
LogViewMain.TMainLogView.FilesClick($20E2710)

    if ndx>=0 then
      ndx := FLogSelected[ndx];

Exception cause: ndx = 0 and FLogSelected is Empty !

Last edited by itSDS (2015-02-26 13:49:06)


Rad Studio 12.1 Santorini

Offline

#4 2015-02-26 13:55:38

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Exception opening Rotated synlz LogFiles

Next Problem:

i testet RotateFileDailyAtHour := 23
No synlz file is produced at the specified point of time.

IDEA: I think each log file which is produced shoul look like all LogFiles (I'm Missing the Header in the 2nd, 3rd and so on.
If you create the new LogFile add Header at Top and e Log Entry "LogFile Changed at ... cause... (Time reached/FileSize to Big, ...)"


Rad Studio 12.1 Santorini

Offline

#5 2015-02-26 20:05:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: Exception opening Rotated synlz LogFiles

There is something wrong.
I've the header in all .synlz log files here...

Offline

Board footer

Powered by FluxBB