MySnmpCrawler API

snmp.lib.util
Class Log

java.lang.Object
  |
  +--org.apache.log4j.Category
        |
        +--org.apache.log4j.Logger
              |
              +--snmp.lib.util.Log
All Implemented Interfaces:
org.apache.log4j.spi.AppenderAttachable

public class Log
extends org.apache.log4j.Logger

This class provides the default information to instantiate Logger object in log4j. It is also a subclass of the Logger class to provide different logging operations.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:48 $
Author:
Scott Cheng

Field Summary
private static Log instance
           
static java.lang.String ROOT_LEVEL
           
 
Fields inherited from class org.apache.log4j.Logger
 
Fields inherited from class org.apache.log4j.Category
additive, level, name, parent, repository, resourceBundle
 
Constructor Summary
protected Log(java.lang.String name)
           
 
Method Summary
static Log getInstance()
          Gets the singleton object of the Log class.
 
Methods inherited from class org.apache.log4j.Logger
getLogger, getLogger, getLogger, getRootLogger
 
Methods inherited from class org.apache.log4j.Category
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, shutdown, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_LEVEL

public static final java.lang.String ROOT_LEVEL
See Also:
Constant Field Values

instance

private static Log instance
Constructor Detail

Log

protected Log(java.lang.String name)
       throws SnmpException
Method Detail

getInstance

public static Log getInstance()
                       throws SnmpException
Gets the singleton object of the Log class.

Returns:
Singleton object of the Log class.
SnmpException

MySnmpCrawler API