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

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

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.2 Athens

Offline

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

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,898
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: 532

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.2 Athens

Offline

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

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

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.2 Athens

Offline

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

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,898
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: 532

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.2 Athens

Offline

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

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,898
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: 532

Re: Bug with Log To SynLz

Sorry its

500*1024
or
1000*1024


Rad Studio 12.2 Athens

Offline

#9 2025-03-13 11:32:11

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

Re: Bug with Log To SynLz

Hi Arnaud, today we had this Problem again, consuming also a lot of cpu cycles in the service with the Log - Problem.

I found out, that on the server running the logs, Microsoft defender was scanning the logs.
Is this a possible Reason for the Problem?
I deaktivated the Defender - Scan for our Log/Service directories.

I will report if Problem has gone or not

Last edited by itSDS (2025-03-13 11:33:28)


Rad Studio 12.2 Athens

Offline

#10 2025-03-13 17:26:33

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

Re: Bug with Log To SynLz

I don't see any reason beyond Microsoft Defender abuse.
Our logs are a standard text file.
Unless you use the .synlz version or another .zip/.gz format?

Offline

#11 2025-03-13 19:05:54

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

Re: Bug with Log To SynLz

I was just looking fpr a reason, that the Log Files behave the described way.
The Problem is, if the BUG occurs, the Service seems to hang for the connected clients


Rad Studio 12.2 Athens

Offline

Board footer

Powered by FluxBB