urv.log
Class Log

java.lang.Object
  extended by urv.log.Log

public class Log
extends java.lang.Object

Author:
Gerard Paris Aixala

Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static int LOG_PERIOD
           
static int WARN
           
 
Method Summary
 void debug(java.lang.String string)
           
 void fatal(java.lang.String string)
           
static Log getInstance()
           
 void increaseLostDataMessage()
           
 void incresaseSuccessfulDeliveredMessages()
           
 void info(java.lang.String string)
           
 java.lang.String printLoggables()
           
 void printMessageReceived(org.jgroups.Address dest, org.jgroups.Address src, java.lang.String str)
           
 void printMessageStatistics()
           
 void registerDumpingClass(java.lang.String className)
          The classes registered with this method will be dumped when the method printLoggables() is invoked.
 void registerLoggable(java.lang.String className, Loggable l)
          Registers a loggable for the specified classname
 void setCurrentLevel(int currentLevel)
           
 void warn(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

FATAL

public static final int FATAL
See Also:
Constant Field Values

LOG_PERIOD

public static final int LOG_PERIOD
See Also:
Constant Field Values
Method Detail

getInstance

public static Log getInstance()

debug

public void debug(java.lang.String string)

fatal

public void fatal(java.lang.String string)

increaseLostDataMessage

public void increaseLostDataMessage()

incresaseSuccessfulDeliveredMessages

public void incresaseSuccessfulDeliveredMessages()

info

public void info(java.lang.String string)

printLoggables

public java.lang.String printLoggables()

printMessageReceived

public void printMessageReceived(org.jgroups.Address dest,
                                 org.jgroups.Address src,
                                 java.lang.String str)

printMessageStatistics

public void printMessageStatistics()

registerDumpingClass

public void registerDumpingClass(java.lang.String className)
The classes registered with this method will be dumped when the method printLoggables() is invoked.

Parameters:
className -

registerLoggable

public void registerLoggable(java.lang.String className,
                             Loggable l)
Registers a loggable for the specified classname


warn

public void warn(java.lang.String string)

setCurrentLevel

public void setCurrentLevel(int currentLevel)
Parameters:
currentLevel - the currentLevel to set