The LogConnection class functions as a repository for the hostname and port configuration for the Log Server you want to send the log request to.

The signature for a LogConnection constructor looks like this:

//Create a Log Server connection
LogConnection lsc = new LogConnection(logHost, logPort);

You call the following methods on a LogConnection object to establish a connection with a Log Server and send it a log request:

These methods use a LogEntry object as their argument when sending a log request to the Log Server. The following examples show the code to send a log request.


Copyright © Legal Notices