#1 2014-09-12 01:27:24

win2014
Member
Registered: 2014-06-10
Posts: 31

Huge string log will be truncated?

I need to log some HTML page, like this:

TSynLog.Add.Log(sllInfo, aLabel + ' ' + html);

The HTML page length several ten thousand, but I see the </html> often lost, the HTML be truncated! I sure the page is complete.
Somebody help?

Offline

#2 2014-09-12 07:11:17

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

Re: Huge string log will be truncated?

Are you using the latest 1.18 revision?

There is a "TextTruncateAtLength: integer" parameter to the TSynLog.Add.Log() method, but it is set by default to maxInt, so should never truncate the content.

Offline

#3 2014-09-12 08:38:12

win2014
Member
Registered: 2014-06-10
Posts: 31

Re: Huge string log will be truncated?

I just found version info in SynCommons.pas, I'm sure I'm using 1.18

SYNOPSE_FRAMEWORK_VERSION = '1.18'{$ifdef LVCL}+' LVCL'{$endif};

Offline

#4 2014-09-12 11:34:34

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

Re: Huge string log will be truncated?

1.18 started more than one year ago.
When did you download it?
(just to be sure that you have the latest version)
See http://synopse.info/files/mORMotNightlyBuild.zip
and http://synopse.info/files/sqlite3obj.7z

Offline

Board footer

Powered by FluxBB