Log to Remote
Grace Software
JavaLog

$Revision: 1.2 $
$Date: 2000/02/02 14:34:23 $

Introduction

JavaLog events can be sent to remote process. This is useful in the centralized log server model where all the events are sent to a centralized log server. This is accomplished using the ProxyHandler. When the ProxyHandler is installed, all events are sent to the remote Distributer.

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.Sender
Et voila! The logging output of the client Sender will be sent to the Server.