Page 1 of 1

date and time from Log

Posted: Mon May 25, 2020 10:19 am
by zaininpf
Hello everyone,
observing the WTWARE log how can I trace the date and time when the events were recorded?

for example:
...
[rdpclient 774] [43.580642] 32-bit color.
[rdpclient 774] [101.741649] errorInfo 0x00000000.
[rdpclient 774] [101.742186] Receive Disconnect Provider Ultimatum.
[gm] [101.742224] TSClient (sessionId 2, pid 774) gracefully end.
...

thanks
Andrea

Re: date and time from Log

Posted: Mon May 25, 2020 10:00 pm
by aka
[101.741649] is number of seconds since boot.

Re: date and time from Log

Posted: Tue May 26, 2020 10:34 am
by zaininpf
Thanks for the reply.
So if I don't know the boot date and time, can't I go back to the time of the event? :(

Re: date and time from Log

Posted: Thu May 28, 2020 2:50 pm
by aka
Local terminal clock can be wrong. Raspberry has no clock at all. So we never rely on local clock.

You can send logs to another machine with unix-like syslog server (it's trivial service, google knows several for windows too) and with proper clock:

https://wtware.com/docs5/config.html#syslog

BTW, if user configures NTP (ntp= config option or 042 DHCP parameter), we can put real date and time instead of seconds since boot. I'll try to implement it. But not in short term, sorry.

Re: date and time from Log

Posted: Fri May 29, 2020 10:52 am
by zaininpf
OK, tahnks!