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:

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.


Variable Index

 o DEFAULT_SEVERITY
 o m_severity
The logger's severity setting.
 o OPTION_SEVERITY
Configuration option that specifies the severity for the logger.
 o SEVERITY_DEBUG
 o SEVERITY_ERROR
 o SEVERITY_INVALID
 o SEVERITY_NAMES
 o SEVERITY_STATUS

Constructor Index

 o Logger()

Method Index

 o getSeverity()
Get the current severity.
 o getSeverityName(int)
Get the severity name associated with the given severity.
 o getSeverityValue(String)
Get the severity value associated with the given severity name.
 o init(Properties, ContainerContext)
One-time initialization of the logger with its configuration parameters.
 o isLoggable(int)
Determine if a message would be logged at the given severity level.
 o log(String, int)
Log the given message at the given severity.
 o log(String, Throwable, int)
Log the given message and exception at the given severity.
 o log(Throwable, int)
Log the given exception at the given severity.
 o setSeverity(int)
Set the current severity.

Variables

 o SEVERITY_ERROR
 public static final int SEVERITY_ERROR
 o SEVERITY_STATUS
 public static final int SEVERITY_STATUS
 o SEVERITY_DEBUG
 public static final int SEVERITY_DEBUG
 o SEVERITY_INVALID
 protected static final int SEVERITY_INVALID
 o SEVERITY_NAMES
 public static String SEVERITY_NAMES[]
 o DEFAULT_SEVERITY
 public static final int DEFAULT_SEVERITY
 o OPTION_SEVERITY
 public static final String OPTION_SEVERITY
Configuration option that specifies the severity for the logger.

 o m_severity
 protected int m_severity
The logger's severity setting.

Constructors

 o Logger
 public Logger()

Methods

 o 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).
 o 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.
 o 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.
 o getSeverity
 public int getSeverity()
Get the current severity.

Returns:
The current severity setting for the logger.
 o setSeverity
 public void setSeverity(int severity)
Set the current severity.

Parameters:
severity - The new severity setting for the logger.
 o 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.
 o 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.
 o 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.
 o 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