BEA Systems, Inc.

com.beasys.commerce.util
Interface Log

All Known Implementing Classes:
DefaultLog, Logger

public interface Log

Version:
$Revision$, $Date$
Author:
smusson

Field Summary
static int LOG_DEBUG
          Error level constant.
static int LOG_DEPRECATED
          The deprecated state.
static int LOG_ERROR
          Error level constant.
static int LOG_FATAL
          Error level constant.
static int LOG_INFO
          Error level constant.
static int LOG_SECURITY
          Error level constant.
static int LOG_WARNING
          Error level constant.
 
Method Summary
 void debug(java.lang.String aMsg)
          Convenience method for debug level message (LOG_DEBUG).
 void deprecated(java.lang.String aMsg)
          Log a Deprecated message.
 int getMinimumLevel()
          Get the minimum message output level.
 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.
 void setMinimumLevel(int aLevel)
          Set the minimum message output level.
 void setShowDeprecated(boolean aBool)
          Set show deprecated.
 

Field Detail

LOG_DEBUG

public static final int LOG_DEBUG
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.debug(String) method.

LOG_INFO

public static final int LOG_INFO
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.info(String) method.

LOG_WARNING

public static final int LOG_WARNING
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.info(String) method.

LOG_ERROR

public static final int LOG_ERROR
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.warning(String) method.

LOG_FATAL

public static final int LOG_FATAL
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.error(String) method.

LOG_SECURITY

public static final int LOG_SECURITY
Error level constant. This implementation maps to the weblogic.common.LogServicesDef.security(String) method.

LOG_DEPRECATED

public static final int LOG_DEPRECATED
The deprecated state.
Method Detail

debug

public void debug(java.lang.String aMsg)
Convenience method for debug level message (LOG_DEBUG).
Parameters:
aMsg -  

info

public void info(java.lang.String aMsg)
Write to the logs, with extra information added. Convenience method for LOG_INFO level.
Parameters:
String - the message, if null it should be ignored.

deprecated

public void deprecated(java.lang.String aMsg)
Log a Deprecated message. These can only be shut off with a true or false.
Parameters:
aMsg -  

info

public void info(java.lang.String aMsg,
                 java.lang.Throwable anException)
Write to the logs, with extra information added. Convenience method for LOG_INFO level.
Parameters:
String - the message, if null it should be ignored.
anException -  

log

public void log(int aLevel,
                java.lang.String aMsg)
Write to the weblogic logs, with extra information added.
Parameters:
int - aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY
String - the message, if null it should be ignored.

log

public void log(int aLevel,
                java.lang.String aMsg,
                java.lang.Throwable anException)
Write to the weblogic logs, with extra information added.
Parameters:
int - aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY
String - the message, if null it should be ignored.
Throwable - the exception.

log

public void log(int aLevel,
                java.lang.String appName,
                java.lang.String aMsg)
Write to the logs, with extra information added.
Parameters:
int - aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY
appName - the name of the application logging the message
String - the message, if null it should be ignored.

log

public void log(int aLevel,
                java.lang.String appName,
                java.lang.String aMsg,
                java.lang.Throwable anException)
Write to the logs, with extra information added.
Parameters:
int - aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY
appName - the name of the application logging the message
String - the message, if null it should be ignored.
Throwable - the exception.

setMinimumLevel

public void setMinimumLevel(int aLevel)
Set the minimum message output level.
Parameters:
aLevel - - this must conform to one of LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

getMinimumLevel

public int getMinimumLevel()
Get the minimum message output level.
Returns:
int - this must conform to one of LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

setShowDeprecated

public void setShowDeprecated(boolean aBool)
Set show deprecated.
Parameters:
aBool -  

getShowDeprecated

public boolean getShowDeprecated()
Get show deprecated.
Returns:
boolean

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved