#1 2016-07-27 08:16:27

akaya
Member
Registered: 2016-07-27
Posts: 3

Problem with ISynLog Leave

Hi,

According to the documentation I am supposed to get a log line with Method Name at the end of the method if I log the procedure with .Enter method. However, my log looks like this:

20160727 07064416  +    TMainForm(05024790).FormCreate
20160727 07064648  -    02.517.950

I was expecting something like this:
20110325 19325801  +    MyDBUnit.TMyDB(004E11F4).SQLExecute
20110325 19325801  -    MyDBUnit.TMyDB(004E11F4).SQLExecute

Configuration:
with TSynLog.Family do
  begin
    NoEnvironmentVariable := True;
    Level := LOG_VERBOSE;
    DestinationPath := '.\Logs';
    CustomFileName := FormatDateTime('yyyymmdd', Date);
    RotateFileCount := 1;
    RotateFileDailyAtHour := 0;
    FileExistsAction := acAppend;
  end;

I have examined TSynLog._Release but could not determine the cause.

What am I doing wrong?

Thank you.

Offline

#2 2016-07-27 09:53:21

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

Re: Problem with ISynLog Leave

The current documentation seems accurate on this point:
http://synopse.info/files/html/Synopse% … #TITLE_602
You may referring to some old deprecated information.

In fact, we get rid of the method name in the "leave" log row.
It was a time and space lost.
If you use the LogViewer, you could easily go to the "enter" row of any "leave" row, just by double-clicking it.

Offline

#3 2016-07-27 10:30:18

akaya
Member
Registered: 2016-07-27
Posts: 3

Re: Problem with ISynLog Leave

Hi,

I was referring to the link below:

http://synopse.info/files/html/api-1.18 … NLOG_ENTER

May I also ask the meaning of "02.517.950" in line "20160727 07064648  -    02.517.950"?

Thank you.

Offline

#4 2016-07-27 10:54:58

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

Re: Problem with ISynLog Leave

I've fixed the doc.
See http://synopse.info/fossil/info/219bb61498
Thanks for the input!

02.517.940 means 2 seconds, 517 ms, 940 us of execution time.

Offline

#5 2016-07-27 11:58:02

akaya
Member
Registered: 2016-07-27
Posts: 3

Re: Problem with ISynLog Leave

Oh, thank you.

Last but not least, when I set NoEnvironmentVariable := True; loading the Log File with LogView.exe results in AV. I believe it has something to do with TSynLogFileView.

I can give you a sample log file if you need.

Offline

Board footer

Powered by FluxBB