#1 2014-09-11 08:21:06

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Is it possible to make TSynLog.Enter log the values of arguments ?

TSynLog.Enter will automatically log the function names when .map is present, which is very convenient.

I wonder if it is possible to make TSynLog.Enter also log the values of pass-in arguments ? I would think it will promote the productivity a lot. big_smile

Offline

#2 2014-09-11 09:26:06

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

Re: Is it possible to make TSynLog.Enter log the values of arguments ?

There is not enough information in the rtti and the map file do know the arguments, sadly...

Offline

#3 2014-09-11 11:53:08

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Is it possible to make TSynLog.Enter log the values of arguments ?

Thank you for your knowledgeable comments !

I am wondering whether the RTTI brought by latest Delphi has enough information about values of arguments ?

Offline

#4 2014-09-11 13:37:30

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

Re: Is it possible to make TSynLog.Enter log the values of arguments ?

No, as I wrote, the RTTI is not enough, even in the latest version.
We may have some information about the class methods, but it could be tricky to handle it.
And some global functions do not have this RTTI generated, AFAIK.

Offline

#5 2014-09-11 14:38:06

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Is it possible to make TSynLog.Enter log the values of arguments ?

Thank you for your helpful and knowledgeable comments !
smile

Offline

Board footer

Powered by FluxBB