com.adventnet.utilities.logging
Class Log

java.lang.Object
  extended by com.adventnet.utilities.logging.Log

public class Log
extends java.lang.Object

This class contains wrapper functions for logging


Field Summary
(package private)  com.adventnet.afp.log.Logger logger
           
 
Constructor Summary
Log()
           
Log(com.adventnet.afp.log.Logger logger)
           
 
Method Summary
 void debug(java.lang.String message)
          This function is used to log Debug Information.
 void debug(java.lang.String message, java.lang.Throwable t)
          This function is used to log Debug Information.
 void disable()
          This function is used to Disable Logging
 void error(java.lang.String message)
          This function is used to log Non Fatal Exceptions .
 void error(java.lang.String message, java.lang.Throwable t)
          This function is used to log Non Fatal Exceptions
 void fatal(java.lang.String message)
           
 void fatal(java.lang.String message, java.lang.Throwable t)
          This function is used to log FATAL Exceptions and Errors
 com.adventnet.afp.log.Logger getLogger()
          This function returns the Logger used by this Log for logging
 int getLoggingLevel()
          This function is used to get the logging Level Only those Messages whose level is > than the level will be logged.
 void info(java.lang.String message)
          This function is used to log General Information.
 void setLoggingLevel(int level)
          This function is used to set the logging Level Only those Messages whose level is < than the level will be logged.
 void trace(java.lang.String message)
          This function is used to log Trace Information.
 void trace(java.lang.String message, java.lang.Throwable t)
          This function is used to log Trace Information.
 void warn(java.lang.String message)
          This function is used to log warnings.
 void warn(java.lang.String message, java.lang.Throwable t)
          This function is used to log warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

com.adventnet.afp.log.Logger logger
Constructor Detail

Log

Log()

Log

Log(com.adventnet.afp.log.Logger logger)
Method Detail

trace

public void trace(java.lang.String message)
This function is used to log Trace Information.


trace

public void trace(java.lang.String message,
                  java.lang.Throwable t)
This function is used to log Trace Information.


info

public void info(java.lang.String message)
This function is used to log General Information.


debug

public void debug(java.lang.String message)
This function is used to log Debug Information.


debug

public void debug(java.lang.String message,
                  java.lang.Throwable t)
This function is used to log Debug Information.


warn

public void warn(java.lang.String message)
This function is used to log warnings.


warn

public void warn(java.lang.String message,
                 java.lang.Throwable t)
This function is used to log warnings.


error

public void error(java.lang.String message)
This function is used to log Non Fatal Exceptions .


error

public void error(java.lang.String message,
                  java.lang.Throwable t)
This function is used to log Non Fatal Exceptions


fatal

public void fatal(java.lang.String message)

fatal

public void fatal(java.lang.String message,
                  java.lang.Throwable t)
This function is used to log FATAL Exceptions and Errors


setLoggingLevel

public void setLoggingLevel(int level)
This function is used to set the logging Level Only those Messages whose level is < than the level will be logged.


getLoggingLevel

public int getLoggingLevel()
This function is used to get the logging Level Only those Messages whose level is > than the level will be logged.


disable

public void disable()
This function is used to Disable Logging


getLogger

public com.adventnet.afp.log.Logger getLogger()
This function returns the Logger used by this Log for logging