public interface IDebug
Allows a pluggable implementation of the Debug service within the Access
Manager SDK. The implementation of this interface as well as the
com.sun.identity.shared.debug.IDebugProvider
interface together
provide the necessary functionality to replace or enhance the Debug service.
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
Deprecated.
use
DebugLevel instead. |
static int |
MESSAGE
Deprecated.
use
DebugLevel instead. |
static int |
OFF
Deprecated.
use
DebugLevel instead. |
static int |
ON
Deprecated.
use
DebugLevel instead. |
static String |
STR_ERROR
Deprecated.
use
DebugLevel instead. |
static String |
STR_MESSAGE
Deprecated.
use
DebugLevel instead. |
static String |
STR_OFF
Deprecated.
use
DebugLevel instead. |
static String |
STR_ON
Deprecated.
use
DebugLevel instead. |
static String |
STR_WARNING
Deprecated.
use
DebugLevel instead. |
static int |
WARNING
Deprecated.
use
DebugLevel instead. |
Modifier and Type | Method and Description |
---|---|
void |
error(String message,
Throwable th)
Allows the recording of messages if the debug level is set to
ERROR or higher for this instance. |
boolean |
errorEnabled()
Returns
true if the current instances allows logging of
ERROR level debug messages. |
String |
getName()
Returns the name of the IDebug instance.
|
int |
getState()
Returns current debug level used by this instance.
|
void |
message(String message,
Throwable th)
Allows the recording of messages if the debug level is set to
MESSAGE for this instance. |
boolean |
messageEnabled()
Returns
true if the current instance allows logging of
MESSAGE level debug messages. |
void |
resetDebug(String mf)
Allows runtime modification of the backend used by this instance.
|
void |
setDebug(int level)
Allows runtime modification of the debug level used by this instance.
|
void |
setDebug(String level)
Allows runtime modification of the debug level used by this instance.
|
void |
warning(String message,
Throwable th)
Allows the recording of messages if the debug level is set to
WARNING or higher for this instance. |
boolean |
warningEnabled()
Returns
true if the current instance allows logging of
WARNING level debug messages. |
@Deprecated static final int OFF
DebugLevel
instead.@Deprecated static final int ERROR
DebugLevel
instead.@Deprecated static final int WARNING
DebugLevel
instead.@Deprecated static final int MESSAGE
DebugLevel
instead.@Deprecated static final int ON
DebugLevel
instead.@Deprecated static final String STR_OFF
DebugLevel
instead.@Deprecated static final String STR_ERROR
DebugLevel
instead.@Deprecated static final String STR_WARNING
DebugLevel
instead.@Deprecated static final String STR_MESSAGE
DebugLevel
instead.@Deprecated static final String STR_ON
DebugLevel
instead.String getName()
IDebug
instanceint getState()
com.iplanet.am.util.Debug
. This value could be
one of the followings:
OFF
ERROR
WARNING
MESSAGE
ON
void setDebug(int level)
level
must be an integer exactly equal to one of
the debug level integers as defined in the class
com.iplanet.am.util.Debug
. This value could be one of the
following:OFF
ERROR
WARNING
MESSAGE
ON
level
- An integer indicating the debug level to be used by this
instance.void resetDebug(String mf)
mf
- merge flag, on to create a single debug filevoid setDebug(String level)
level
must be a string which should exactly match
the string definitions of debug level as defined in the class
com.iplanet.am.util.Debug
. This value could be one of the
following:
STR_OFF
STR_ERROR
STR_WARNING
STR_MESSAGE
STR_ON
level
- String representing the debug level to be used by this
instance.boolean messageEnabled()
true
if the current instance allows logging of
MESSAGE
level debug messages.true
if MESSAGE
level debugging is
enabled.boolean warningEnabled()
true
if the current instance allows logging of
WARNING
level debug messages.true
if WARNING
level debugging is
enabled.boolean errorEnabled()
true
if the current instances allows logging of
ERROR
level debug messages.true
if ERROR
level debugging is
enabled.void message(String message, Throwable th)
MESSAGE
for this instance.message
- Message to be recorded.th
- The optional java.lang.Throwable
which if
present will be used to record the stack trace.void warning(String message, Throwable th)
WARNING
or higher for this instance.message
- Message to be recorded.th
- The optional java.lang.Throwable
which if
present will be used to record the stack trace.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.