| 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.beasys.commerce.util.DefaultLog
Default log implementation, it goes to System.err.
| Field Summary | |
protected static java.lang.String | 
COMMA
 | 
protected static java.lang.String | 
DEFAULT_APP_NAME
 | 
protected  int | 
minimumLevel
 | 
protected static java.lang.String | 
QUOTE
 | 
protected  boolean | 
showDebug
 | 
protected  boolean | 
showDeprecated
 | 
protected static java.lang.String | 
SPACE
 | 
| 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 | |
DefaultLog()
Default constructor.  | 
|
| Method Summary | |
protected  java.lang.String | 
assembleMsg(int aLevel,
            java.lang.String anAppName,
            java.lang.String aMsg)
Assemble the message into the expected output.  | 
 void | 
debug(java.lang.String aMsg)
Debug.  | 
 void | 
deprecated(java.lang.String aMsg)
Deprecated.  | 
 int | 
getMinimumLevel()
Get minimum level.  | 
 boolean | 
getShowDebug()
Get show debug.  | 
 boolean | 
getShowDeprecated()
Get show deprecated.  | 
 void | 
info(java.lang.String aMsg)
Write to the logs, with extra information added.  | 
 void | 
info(java.lang.String aMsg,
     java.lang.Throwable anException)
Write to the logs, with extra information added.  | 
 void | 
log(int aLevel,
    java.lang.String aMsg)
Write to the weblogic logs, with extra information added.  | 
 void | 
log(int aLevel,
    java.lang.String appName,
    java.lang.String aMsg)
Write to the logs, with extra information added.  | 
 void | 
log(int aLevel,
    java.lang.String appName,
    java.lang.String aMsg,
    java.lang.Throwable anException)
Write to the logs, with extra information added.  | 
 void | 
log(int aLevel,
    java.lang.String aMsg,
    java.lang.Throwable anException)
Write to the weblogic logs, with extra information added.  | 
protected  void | 
logOutput(int aLevel,
          java.lang.String anAppName,
          java.lang.String aMsg,
          java.lang.Throwable anException)
Log the output.  | 
 void | 
setMinimumLevel(int aLevel)
Set minimum level.  | 
 void | 
setShowDebug(boolean aBool)
Set show debug.  | 
 void | 
setShowDeprecated(boolean aBool)
Set show deprecated.  | 
protected  java.lang.String | 
textForLevel(int aLevel)
Text for level.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected static final java.lang.String QUOTE
protected static final java.lang.String SPACE
protected static final java.lang.String COMMA
protected static final java.lang.String DEFAULT_APP_NAME
protected int minimumLevel
protected boolean showDeprecated
protected boolean showDebug
| Constructor Detail | 
public DefaultLog()
| Method Detail | 
protected java.lang.String textForLevel(int aLevel)
aLevel -  String
protected java.lang.String assembleMsg(int aLevel,
                                       java.lang.String anAppName,
                                       java.lang.String aMsg)
aLevel -  anAppName -  aMsg -  String
protected void logOutput(int aLevel,
                         java.lang.String anAppName,
                         java.lang.String aMsg,
                         java.lang.Throwable anException)
aLevel -  anAppName - the application nameaCompleteMsg -  anException -  public void debug(java.lang.String aMsg)
debug in interface LogaMsg -  public void info(java.lang.String aMsg)
info in interface LogString - the message, if null it will be ignored.
public void info(java.lang.String aMsg,
                 java.lang.Throwable anException)
info in interface LogString - the message, if null it will be ignored.Throwable - the exception;public void deprecated(java.lang.String aMsg)
deprecated in interface LogaMsg -  
public void log(int aLevel,
                java.lang.String aMsg)
log in interface Logint - aLevel Possible error levels are:
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYString - the message, if null it will ignore.
public void log(int aLevel,
                java.lang.String aMsg,
                java.lang.Throwable anException)
log in interface Logint - aLevel Possible error levels are:
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYString - the message, if null it will ignore.Throwable - the exception.
public void log(int aLevel,
                java.lang.String appName,
                java.lang.String aMsg)
log in interface Logint - aLevel Possible error levels are:
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYappName - the name of the application logging the messageString - the message, if null it will ignore.
public void log(int aLevel,
                java.lang.String appName,
                java.lang.String aMsg,
                java.lang.Throwable anException)
log in interface Logint - aLevel Possible error levels are:
           LOG_DEBUG
           LOG_INFO
           LOG_WARNING
           LOG_ERROR
           LOG_FATAL
           LOG_SECURITYappName - the name of the application logging the messageString - the message, if null it will ignore.Throwable - the exception.public void setMinimumLevel(int aLevel)
setMinimumLevel in interface LogaLevel -  public int getMinimumLevel()
getMinimumLevel in interface Logintpublic void setShowDeprecated(boolean aBool)
setShowDeprecated in interface LogaBool -  public boolean getShowDeprecated()
getShowDeprecated in interface Logbooleanpublic void setShowDebug(boolean aBool)
setShowDebug in interface LogaBool -  public boolean getShowDebug()
getShowDebug in interface Logboolean
  | 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||