|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.soap.server.Logger
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:
Field Summary | |
static int |
DEFAULT_SEVERITY
|
protected int |
m_severity
The logger's severity setting. |
static java.lang.String |
OPTION_SEVERITY
Configuration option that specifies the severity for the logger. |
static int |
SEVERITY_DEBUG
|
static int |
SEVERITY_ERROR
|
protected static int |
SEVERITY_INVALID
|
static java.lang.String[] |
SEVERITY_NAMES
|
static int |
SEVERITY_STATUS
|
Constructor Summary | |
Logger()
|
Method Summary | |
int |
getSeverity()
Get the current severity. |
protected java.lang.String |
getSeverityName(int severity)
Get the severity name associated with the given severity. |
protected int |
getSeverityValue(java.lang.String severityName)
Get the severity value associated with the given severity name. |
abstract void |
init(java.util.Properties options,
ContainerContext context)
One-time initialization of the logger with its configuration parameters. |
boolean |
isLoggable(int severity)
Determine if a message would be logged at the given severity level. |
abstract void |
log(java.lang.String msg,
int severity)
Log the given message at the given severity. |
abstract void |
log(java.lang.String msg,
java.lang.Throwable t,
int severity)
Log the given message and exception at the given severity. |
abstract void |
log(java.lang.Throwable t,
int severity)
Log the given exception at the given severity. |
void |
setSeverity(int severity)
Set the current severity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SEVERITY_ERROR
public static final int SEVERITY_STATUS
public static final int SEVERITY_DEBUG
protected static final int SEVERITY_INVALID
public static java.lang.String[] SEVERITY_NAMES
public static final int DEFAULT_SEVERITY
public static final java.lang.String OPTION_SEVERITY
protected int m_severity
Constructor Detail |
public Logger()
Method Detail |
protected final int getSeverityValue(java.lang.String severityName)
severityName
- The name of the serverity level (e.g., error).protected final java.lang.String getSeverityName(int severity)
severity
- The severity level (SEVERITY_xxx).public abstract void init(java.util.Properties options, ContainerContext context) throws SOAPException
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.SOAPException
- Unable to initialize the logger.public int getSeverity()
public void setSeverity(int severity)
severity
- The new severity setting for the logger.public boolean isLoggable(int severity)
severity
- The severity level to check.true
if a message would be logged at the given severity
level, else false
.public abstract void log(java.lang.String msg, int severity)
msg
- The message to log.severity
- The severity at which to log the information.public abstract void log(java.lang.String msg, java.lang.Throwable t, int severity)
msg
- The message to log.t
- The throwable exception to log.severity
- The severity at which to log the information.public abstract void log(java.lang.Throwable t, int severity)
t
- The throwable exception to log.severity
- The severity at which to log the information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |