Print Page | Close Window

Forwarding ReceivedOutputInformation

Printed From: TMS Software
Category: Developer Tools
Forum Name: DEV Logging
Forum Discription:
Printed Date: 12 Dec 2019 at 7:17pm

Topic: Forwarding ReceivedOutputInformation
Posted By: Hädrich Frank
Subject: Forwarding ReceivedOutputInformation
Date Posted: 07 Feb 2019 at 3:54pm
Hello TMS Team,

I want to centralize the logging of my services and applications using the tcp logging server. 

In the "TMSLoggerTCPServerReceivedOutputInformation" event of the TCP LoggingServer I receive the type of TTMSLoggerOutputInformation. 
Is it possible to forward the TTMSLoggerOutputInformation received on the TCP Logging Server directly to an other OutputHandler, e.g. Browser?

Posted By: Pieter Scheldeman
Date Posted: 07 Feb 2019 at 4:18pm

Each OutputHandler has a protected method

procedure Log(const AOutputInformation: TTMSLoggerOutputInformation);

You can try by using a protected class wrapper to call the method and pass the outputinformation directly:

  TTMSLoggerOutputHandlerOpen = class(TTMSLoggerOutputHandler);

Posted By: Hädrich Frank
Date Posted: 08 Feb 2019 at 11:19am
Great Work!

Many Thanks

Print Page | Close Window