| 
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beasys.commerce.util.Logger
Logger singleton. This class will read the log class from the commerce properties. This class must implement the Log interface. If it is not found or If there is a problem creating the specified log class, it will use the std err log. For purely convenience reasons, this class has implemented the Log interface and delegates to the instantiated 'Log'. So instead of doing Logger.getInstance().getLog().log(), you can do Logger.getInstance().log(). NOTE: Both methods are valid and write to identical logs. Also since the singleton implements the Log interface, the constants are available off of Logger, e.g. Logger.LOG_DEBUG == Log.LOG_DEBUG.
| Field Summary | 
| Fields inherited from interface com.beasys.commerce.util.Log | 
LOG_DEBUG, LOG_DEPRECATED, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_SECURITY, LOG_WARNING | 
| Constructor Summary | |
protected  | 
Logger()
Deprecated. Default constructor.  | 
| Method Summary | |
 void | 
debug(String aMsg)
Deprecated. Convenience method for debug level message (LOG_DEBUG).  | 
 void | 
deprecated(String aMsg)
Deprecated. Show a deprecated message.  | 
static Logger | 
getInstance()
Deprecated. Get singleton instance.  | 
 Log | 
getLog()
Deprecated. Return the instantiated 'Log'.  | 
 int | 
getMinimumLevel()
Deprecated. Get the minimum message output level.  | 
 boolean | 
getShowDebug()
Deprecated. Get show debug.  | 
 boolean | 
getShowDeprecated()
Deprecated. Get show deprecated.  | 
 void | 
info(String aMsg)
Deprecated. Write to the logs, with extra information added.  | 
 void | 
info(String aMsg,
     Throwable anException)
Deprecated. Write to the logs, with extra information added.  | 
protected  void | 
init()
Deprecated. Initialize the logger.  | 
 void | 
log(int aLevel,
    String aMsg)
Deprecated. Write to the weblogic logs, with extra information added.  | 
 void | 
log(int aLevel,
    String appName,
    String aMsg)
Deprecated. Write to the logs, with extra information added.  | 
 void | 
log(int aLevel,
    String appName,
    String aMsg,
    Throwable anException)
Deprecated. Write to the logs, with extra information added.  | 
 void | 
log(int aLevel,
    String aMsg,
    Throwable anException)
Deprecated. Write to the weblogic logs, with extra information added.  | 
 void | 
setMinimumLevel(int aLevel)
Deprecated. Set the minimum message output level.  | 
 void | 
setShowDebug(boolean aBool)
Deprecated. Set show debug.  | 
 void | 
setShowDeprecated(boolean aBool)
Deprecated. Set show deprecated.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
protected Logger()
| Method Detail | 
public void debug(String aMsg)
debug in interface LogaMsg - public void deprecated(String aMsg)
deprecated in interface LogaMsg - public static Logger getInstance()
Logpublic Log getLog()
Logpublic int getMinimumLevel()
getMinimumLevel in interface Logint - this must conform to one of 
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYpublic boolean getShowDebug()
getShowDebug in interface Logbooleanpublic boolean getShowDeprecated()
getShowDeprecated in interface Logbooleanpublic void info(String aMsg)
info in interface Log
public void info(String aMsg,
                 Throwable anException)
info in interface LoganException - protected void init()
public void log(int aLevel,
                String aMsg)
log in interface Log
public void log(int aLevel,
                String appName,
                String aMsg)
log in interface LogappName - the name of the application logging the message
public void log(int aLevel,
                String appName,
                String aMsg,
                Throwable anException)
log in interface LogappName - the name of the application logging the message
public void log(int aLevel,
                String aMsg,
                Throwable anException)
log in interface Logpublic void setMinimumLevel(int aLevel)
setMinimumLevel in interface LogaLevel - - this must conform to one of 
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYpublic void setShowDebug(boolean aBool)
setShowDebug in interface LogaBool - public void setShowDeprecated(boolean aBool)
setShowDeprecated in interface LogaBool - 
  | 
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||