Wrong timestamp in Codesite logging

157 Views Asked by At

I am using Raize CodeSite to write log lines to from a Delphi desktop application to a separate log file. All components are running on a single PC (application + Codesite)

The logging works fine, except for the date/time. The date/time which is shown in the Codesite Log viewer is sometimes EARLIER than the time the log message was sent!

TS := FormatDateTime('YYYY-MM-DD HH:NN:SS.ZZZ', NOW());     // 2019-08-20 14:22:15.780
CodeSite.Send('Log Message at ' + TS );

Which results into a log line with a (codesite-) date/time which is EARLIER than the timestamp generated in the application:

"Log message at 2019-08-20 14:22:15.780" Code site date time: 2019/08/20 14:22:15.333

0

There are 0 best solutions below