You are not logged in.
Pages: 1
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
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
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
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
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
Pages: 1