#1 2016-11-13 14:29:20

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

[solved] Question about SynLog.Enter()

Hello Arnaud,

For some code like TMyLog.Add.Enter(nil, 'My_Nested_Procedure'), it'll produce log entries like:

20161113 22131861  +    		=> My_Nested_Procedure
20161113 22131861 info  			mylogmsg
20161113 22131900 info  			mylogmsg2
20161113 22131914 info  			mylogmsg3
20161113 22131919  -    		00.327.901

I assume 00.327.901 is the time elapsed? How can I change timespan format to a more human readable format, such as 00:02:59?

Thanks.

Last edited by edwinsn (2016-11-14 07:56:03)


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

Offline

#2 2016-11-13 22:43:08

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: [solved] Question about SynLog.Enter()

This format is human readable, : is used to divide hours:minutes:seconds, in log you have second.millisecond.uniseconds, so this is as expected,right?

Last edited by mpv (2016-11-13 22:44:23)

Offline

#3 2016-11-14 07:55:15

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

Re: [solved] Question about SynLog.Enter()

@mpv, thank you very much! I didn't know that, yes, it's human-readable already smile


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