View articles

Title Sending debug msg to a TCPServer
Text Its quite easy to write a small TCP based server to listen to messages, and from an app, send debug messages to it. This way, when we are testing on a remote server, it may be possible for each individual tester to run some tests, and get all logs sent to the TCP server on her machine. e.g. see In PHP, we can use socket_open,write,close to send the msgs to the TCPServer. In Java, we could use NDC of log4j and create an appender that writes to the tcp address in the request. Note that if we are behind a router, the router needs to be configured to send the connection to the correct machine.
Categories Software


SrNo File Name Remarks Preview File Size Created By Created On