All Packages Class Hierarchy This Package Previous Next Index
Class oracle.soap.server.Logger
java.lang.Object
|
+----oracle.soap.server.Logger
- public abstract class Logger
- extends Object
Logger
defines the capabilities that must be supported
by a logger implementation. The logger is used to persistently
record error and informational messages.
Each log request specifies the severity, and the information should
be logged iff the severity is at least as high as the specified severity.
The order of severity in increasing order is:
- SEVERITY_ERROR
- SEVERITY_STATUS
- SEVERITY_DEBUG
For example, if the severity is set to SEVERITY_STATUS, any log request
with severity of either SEVERITY_STATUS or SEVERITY_ERROR will be logged.
-
DEFAULT_SEVERITY
-
-
m_severity
- The logger's severity setting.
-
OPTION_SEVERITY
- Configuration option that specifies the severity for the logger.
-
SEVERITY_DEBUG
-
-
SEVERITY_ERROR
-
-
SEVERITY_INVALID
-
-
SEVERITY_NAMES
-
-
SEVERITY_STATUS
-
-
Logger()
-
-
getSeverity()
- Get the current severity.
-
getSeverityName(int)
- Get the severity name associated with the given severity.
-
getSeverityValue(String)
- Get the severity value associated with the given severity name.
-
init(Properties, ContainerContext)
- One-time initialization of the logger with its configuration parameters.
-
isLoggable(int)
- Determine if a message would be logged at the given severity level.
-
log(String, int)
- Log the given message at the given severity.
-
log(String, Throwable, int)
- Log the given message and exception at the given severity.
-
log(Throwable, int)
- Log the given exception at the given severity.
-
setSeverity(int)
- Set the current severity.
SEVERITY_ERROR
public static final int SEVERITY_ERROR
SEVERITY_STATUS
public static final int SEVERITY_STATUS
SEVERITY_DEBUG
public static final int SEVERITY_DEBUG
SEVERITY_INVALID
protected static final int SEVERITY_INVALID
SEVERITY_NAMES
public static String SEVERITY_NAMES[]
DEFAULT_SEVERITY
public static final int DEFAULT_SEVERITY
OPTION_SEVERITY
public static final String OPTION_SEVERITY
- Configuration option that specifies the severity for the logger.
m_severity
protected int m_severity
- The logger's severity setting.
Logger
public Logger()
getSeverityValue
protected final int getSeverityValue(String severityName)
- Get the severity value associated with the given severity name.
- Parameters:
- severityName
- The name of the serverity level (e.g., error).
- Returns:
- The severity (SEVERITY_xxx).
getSeverityName
protected final String getSeverityName(int severity)
- Get the severity name associated with the given severity.
- Parameters:
- severity
- The severity level (SEVERITY_xxx).
- Returns:
- The severity name.
init
public abstract void init(Properties options,
ContainerContext context) throws SOAPException
- One-time initialization of the logger with its configuration parameters.
- Parameters:
- options
- The configuration options for the logger.
- context
- The context of the container in which the SOAP server is running,
which includes information that may be used by the logger.
- Throws: SOAPException
- Unable to initialize the logger.
getSeverity
public int getSeverity()
- Get the current severity.
- Returns:
- The current severity setting for the logger.
setSeverity
public void setSeverity(int severity)
- Set the current severity.
- Parameters:
- severity
- The new severity setting for the logger.
isLoggable
public boolean isLoggable(int severity)
- Determine if a message would be logged at the given severity level.
- Parameters:
- severity
- The severity level to check.
- Returns:
-
true
if a message would be logged at the given severity
level, else false
.
log
public abstract void log(String msg,
int severity)
- Log the given message at the given severity.
- Parameters:
- msg
- The message to log.
- severity
- The severity at which to log the information.
log
public abstract void log(String msg,
Throwable t,
int severity)
- Log the given message and exception at the given severity.
- Parameters:
- msg
- The message to log.
- t
- The throwable exception to log.
- severity
- The severity at which to log the information.
log
public abstract void log(Throwable t,
int severity)
- Log the given exception at the given severity.
- Parameters:
- t
- The throwable exception to log.
- severity
- The severity at which to log the information.
All Packages Class Hierarchy This Package Previous Next Index