com.basistech.rlp
Class RLPJavaUtilLogCallback

java.lang.Object
  extended by com.basistech.rlp.RLPJavaUtilLogCallback
All Implemented Interfaces:
RLPEnvironment.LogCallback

public class RLPJavaUtilLogCallback
extends Object
implements RLPEnvironment.LogCallback

This class implements RLP's LogCallback using java.util.logging.Logger.


Constructor Summary
RLPJavaUtilLogCallback(Logger logger)
          Pass a logger object of Java standard java.util.logging.Logger.
 
Method Summary
 void message(int channel, String message)
          Receives each log message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLPJavaUtilLogCallback

public RLPJavaUtilLogCallback(Logger logger)
Pass a logger object of Java standard java.util.logging.Logger. Below is a typical use:
  static Logger logger = Logger.getLogger(MyApp.class.getName());
  LogCallback rlpLogCB = new RLPJavaUtilLoggerCallback(logger);
  RLPEnvironmentParameters rlpenvp = new RLPEnvironmentParameters();
  rlpenvp.setLogCallback(rlpLogCb);
  rlpenvp.setLogLevel("all");
 

Parameters:
logger - An instance of java.util.logging.Logger.
Method Detail

message

public void message(int channel,
                    String message)
Receives each log message.

Specified by:
message in interface RLPEnvironment.LogCallback
Parameters:
channel - The originating channel of the message, Logging Channels.
message - The message text. Note that a logical message may be split into multiple. calls to this function. If you need to organize the results into a GUI, look for newlines.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.