#1 2018-10-21 09:32:03

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

I think there is a logic error in TSynLog

Hello ab,

Even if CustomFileName is set, TSynLog.ComputeFileName still append the current datetime to the filename.

I think this is logically not right. Instead, it should use CustomFileName without appending the timestamp, what do you think?


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2018-10-22 06:22:18

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

Re: I think there is a logic error in TSynLog

Time is added if file rotation is not enabled.
If file rotation is setup, no time is added.
So just put a huge file rotation size, and you will have what you expect.

Offline

#3 2018-10-23 10:37:44

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: I think there is a logic error in TSynLog

ok, thanks.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB