How to write your own handler

This tutorial will demonstrate how easy it is to write your own handler.

The interface Handler

public void publish(String msg);
This method will be called if there is not formatter associated with a logger and therefore only the message will be send.

public void publish(LogRecord lr);
This method is called with the LogRecord which contains all informations for the specific log request.

public void setParameter(Hashtable parameters);
This method is called when the configuration is parsed and all parameter tags inside the xml file for this handler are send over as a Hashtable.

Example

The example is coming soon.