Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Forwarding ReceivedOutputInformation

 Post Reply Post Reply
Author
Hädrich Frank View Drop Down
New Member
New Member
Avatar

Joined: 21 Aug 2014
Posts: 3
Post Options Post Options   Quote Hädrich Frank Quote  Post ReplyReply Direct Link To This Post Topic: Forwarding ReceivedOutputInformation
    Posted: 08 Feb 2019 at 11:19am
Perfect!
Great Work!

Many Thanks


Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3363
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 07 Feb 2019 at 4:18pm
Hi,

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:

type
  TTMSLoggerOutputHandlerOpen = class(TTMSLoggerOutputHandler);
...
TTMSLoggerOutputHandlerOpen(MyOutputHandler).Log(info);
Back to Top
Hädrich Frank View Drop Down
New Member
New Member
Avatar

Joined: 21 Aug 2014
Posts: 3
Post Options Post Options   Quote Hädrich Frank Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down