Grace Software
JavaLog
$Revision: 1.2 $
$Date: 2000/02/02 14:34:23 $
|
First, a remote server must be started and it must register its Distributer in the rmiregistery under a unique name. Then, this unique name must be passed to all logging clients using a ProxyHandler to the remote Distributer. An example of this is this Test Server and Sender. It implements the most basic centralized server. In the following example, the server is named garbo.
client$ rlogin garbo garbo$ rmiregistry & garbo$ java -Dlog.server=true -Dlog.name=LogServer grace.log.test.centralized.Server garbo$ exit client$ java -Dlog.handler.proxy.url=rmi://garbo/LogServer grace.log.test.centralized.SenderEt voila! The logging output of the client Sender will be sent to the Server.