#1 2024-08-27 12:26:05

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

Bug with Log To SynLz

Hi Arnaud,

today we had this Problem:

    TSynLog.Family.RotateFileCount := 100
    TSynLog.Family.RotateFileSizeKB := 500MB
    TSynLog.Family.RotateFileDailyAtHour := 23

LogSize : 946MB
And 100 Files Created each containing the Log with some few lines added

It seems that the Log is not truncated / deleted after creating the synlz
so that every synlz contains the Log beginning at the same Line but enhanced with some newly added rows.

After restarting the Service everything runs as expected

Any Idea ?

Last edited by itSDS (2024-08-27 12:27:09)


Rad Studio 12.1 Santorini

Offline

#2 2024-08-27 15:10:22

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

Re: Bug with Log To SynLz

I don't get it, sorry.

Offline

#3 2024-08-30 08:54:58

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

Re: Bug with Log To SynLz

Hi Arnaud, what do you mean ?

You need more details ?

The Problem occours not very often !


Rad Studio 12.1 Santorini

Offline

#4 2024-09-03 13:49:56

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

Re: Bug with Log To SynLz

Hi Arnaud, here a some screens from the Logs, may be you understand now what i mean

https://imgur.com/a/ciHf8nj

I think there is a Problem in TSynLog.PerformRotation, May be the File can not be deleted or something else


Rad Studio 12.1 Santorini

Offline

#5 2024-09-03 17:14:15

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

Re: Bug with Log To SynLz

Which value did you set to RotateFileSizeKB ?

Offline

#6 2024-09-03 19:10:23

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

Re: Bug with Log To SynLz

In this case its 1000M but get same with 500M

The Content of the Log is nearly the same Just some lines added from file to file..

Last edited by itSDS (2024-09-03 19:11:06)


Rad Studio 12.1 Santorini

Offline

#7 2024-09-04 06:47:13

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

Re: Bug with Log To SynLz

1000M is not a pascal value.
Which number do you put in the source code?

Offline

#8 2024-09-04 08:05:18

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

Re: Bug with Log To SynLz

Sorry its

500*1024
or
1000*1024


Rad Studio 12.1 Santorini

Offline

Board footer

Powered by FluxBB