#1 2015-03-12 10:31:19

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Remote Logging defect

Hi AB - (Using the latest Version 1072)

LogView and service compiled with 1072

atm I'm in need to use Remote Logging of one of my services.
The Output is not colored and the Lines are not correct shown.

11:24:50    Info     Remote Logging Server started on port 8091 with root name "LogService"
11:25:26    Client         Remote Client TSQLHttpClientWinHTTP Connected
11:25:26        ace Echoing to remote server http://localhost/LogService/RemoteLog:8091
11:25:26            TTASYSService(013F0620).00A09131
11:25:26               TTASYSService(013F0620).00A09575
11:25:26        s         Log: Hauptdienst: Der Dienst wurde erstellt
11:25:26               00.000.483
11:25:26            00.000.489

The first and second line is correct.

All other contain false fragments of text

20150312 11252654  ! trace Echoing to remote server http://localhost/LogService/RemoteLog:8091
20150312 11252654  !  +    TTASYSService(013F0620).00A09131
20150312 11252654  !  +        TTASYSService(013F0620).00A09575
20150312 11252654  ! res           Log: Hauptdienst: Der Dienst wurde erstellt
20150312 11252654  !  -        00.000.483
20150312 11252654  !  -    00.000.489

Last edited by itSDS (2015-03-12 10:31:51)


Rad Studio 12.1 Santorini

Offline

#2 2015-03-12 17:57:30

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Remote Logging defect

Just another thing with remote logging.

I have to start logview (Remote Server) prior to starting my service, so that the service can find the logview.

In Reality the service is started before the logview cause it is a service startet at boot.
How can i connect the logger of the service to the logview in this case ?


Rad Studio 12.1 Santorini

Offline

#3 2015-03-12 20:26:21

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

Re: Remote Logging defect

You can start the remote logging by a REST command, when the logview is available.
It is pointless to have the remote logging enabled by default by a service.

Offline

#4 2015-11-04 13:56:10

mdiehl
Member
Registered: 2015-02-18
Posts: 1

Re: Remote Logging defect

Hi AB,

I use Remote Logging to debug my service with TSQLLog.Family.Level := LOG_VERBOSE;
Same here, the output in the Logviewer is not colored and the lines are not correct shown.

Logviewer remote

After some debugging I regognized in SynLog.pas, that the function GetLogLevelFromText give false results,  mostly sllNone.
But only in a remote session! The function GetLogLevelFromText looks tricky and I don't know, how to fix it.

If I load the same Log as a file, the Logviewer works fine.

Logviewer file

Any idea?

Regards

Martin

Offline

#5 2015-11-04 16:46:23

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

Re: Remote Logging defect

Sounds like if the remote log has not the same format.

Try to change the "High precision" timestamp mode.

Offline

Board footer

Powered by FluxBB