Class LogUtil
- java.lang.Object
-
- com.sun.identity.liberty.ws.common.LogUtil
-
public class LogUtil extends Object
TheLogUtilclass defines methods which are used by Liberty compoment to write logs.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAS_ABORTAuthentication Service Abort msgid.static StringAS_CONTINUEAuthentication Service Continue msgid.static StringAS_OKAuthentication Service OK msgid.static StringDS_LOOKUP_FAILUREDiscovery Service Lookup Failure msgid.static StringDS_LOOKUP_SUCCESSDiscovery Service Lookup Success msgid.static StringDS_UPDATE_FAILUREDiscovery Service Update Failure msgid.static StringDS_UPDATE_SUCCESSDiscovery Service Update Success msgid.static StringIS_COLLECTED_RESPONSE_FROM_USER_AGENTInteraction service collected response from user agent.static StringIS_PRESENTED_QUERY_TO_USER_AGENTInteractionService presented query page to user agent.static StringIS_REDIRECTED_USER_AGENTIneractionManager redirected user agent to interaction service.static StringIS_REDIRECTED_USER_AGENT_BACKIneractionManager redirected user agent back to SP.static StringIS_RESENDING_MESSAGEIneractionManager resending message to SP.static StringIS_RETURNING_RESPONSE_ELEMENTInteraction service returning response element.static StringIS_RETURNING_RESPONSE_MESSAGEIneractionManager returning response message.static StringIS_SENDING_MESSAGEIneractionManager sending message to SP.static StringPP_INTERACTION_FAILUREPP Interaction Failure msgid.static StringPP_INTERACTION_SUCCESSPP Interaction Success msgid.static StringPP_MODIFY_FAILUREPP Modify Failure msgid.static StringPP_MODIFY_SUCCESSPP Modify Failure msgid.static StringPP_QUERY_FAILUREPP Query Failure msgid.static StringPP_QUERY_SUCCESSPP Query Success msgid.static StringWS_FAILUREFailure msgid.static StringWS_SUCCESSSuccess msgid.
-
Constructor Summary
Constructors Constructor Description LogUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaccess(Level level, String msgid, String[] data)Writes access to Liberty components to a log (amLiberty.access).static voiderror(Level level, String msgid, String[] data)Writes error occurred in Liberty components to a log (amLiberty.error).static booleanisLogEnabled()Checks if the log is enabled.
-
-
-
Field Detail
-
WS_SUCCESS
public static final String WS_SUCCESS
Success msgid.- See Also:
- Constant Field Values
-
WS_FAILURE
public static final String WS_FAILURE
Failure msgid.- See Also:
- Constant Field Values
-
AS_OK
public static final String AS_OK
Authentication Service OK msgid.- See Also:
- Constant Field Values
-
AS_CONTINUE
public static final String AS_CONTINUE
Authentication Service Continue msgid.- See Also:
- Constant Field Values
-
AS_ABORT
public static final String AS_ABORT
Authentication Service Abort msgid.- See Also:
- Constant Field Values
-
PP_QUERY_SUCCESS
public static final String PP_QUERY_SUCCESS
PP Query Success msgid.- See Also:
- Constant Field Values
-
PP_QUERY_FAILURE
public static final String PP_QUERY_FAILURE
PP Query Failure msgid.- See Also:
- Constant Field Values
-
PP_MODIFY_SUCCESS
public static final String PP_MODIFY_SUCCESS
PP Modify Failure msgid.- See Also:
- Constant Field Values
-
PP_MODIFY_FAILURE
public static final String PP_MODIFY_FAILURE
PP Modify Failure msgid.- See Also:
- Constant Field Values
-
PP_INTERACTION_SUCCESS
public static final String PP_INTERACTION_SUCCESS
PP Interaction Success msgid.- See Also:
- Constant Field Values
-
PP_INTERACTION_FAILURE
public static final String PP_INTERACTION_FAILURE
PP Interaction Failure msgid.- See Also:
- Constant Field Values
-
DS_LOOKUP_SUCCESS
public static final String DS_LOOKUP_SUCCESS
Discovery Service Lookup Success msgid.- See Also:
- Constant Field Values
-
DS_LOOKUP_FAILURE
public static final String DS_LOOKUP_FAILURE
Discovery Service Lookup Failure msgid.- See Also:
- Constant Field Values
-
DS_UPDATE_SUCCESS
public static final String DS_UPDATE_SUCCESS
Discovery Service Update Success msgid.- See Also:
- Constant Field Values
-
DS_UPDATE_FAILURE
public static final String DS_UPDATE_FAILURE
Discovery Service Update Failure msgid.- See Also:
- Constant Field Values
-
IS_SENDING_MESSAGE
public static final String IS_SENDING_MESSAGE
IneractionManager sending message to SP.- See Also:
- Constant Field Values
-
IS_RESENDING_MESSAGE
public static final String IS_RESENDING_MESSAGE
IneractionManager resending message to SP.- See Also:
- Constant Field Values
-
IS_RETURNING_RESPONSE_MESSAGE
public static final String IS_RETURNING_RESPONSE_MESSAGE
IneractionManager returning response message.- See Also:
- Constant Field Values
-
IS_REDIRECTED_USER_AGENT
public static final String IS_REDIRECTED_USER_AGENT
IneractionManager redirected user agent to interaction service.- See Also:
- Constant Field Values
-
IS_REDIRECTED_USER_AGENT_BACK
public static final String IS_REDIRECTED_USER_AGENT_BACK
IneractionManager redirected user agent back to SP.- See Also:
- Constant Field Values
-
IS_PRESENTED_QUERY_TO_USER_AGENT
public static final String IS_PRESENTED_QUERY_TO_USER_AGENT
InteractionService presented query page to user agent.- See Also:
- Constant Field Values
-
IS_COLLECTED_RESPONSE_FROM_USER_AGENT
public static final String IS_COLLECTED_RESPONSE_FROM_USER_AGENT
Interaction service collected response from user agent.- See Also:
- Constant Field Values
-
IS_RETURNING_RESPONSE_ELEMENT
public static final String IS_RETURNING_RESPONSE_ELEMENT
Interaction service returning response element.- See Also:
- Constant Field Values
-
-
Method Detail
-
access
public static void access(Level level, String msgid, String[] data)
Writes access to Liberty components to a log (amLiberty.access).- Parameters:
level- java.util.logging.Level indicating log levelmsgid- Message iddata- Message to be logged.
-
error
public static void error(Level level, String msgid, String[] data)
Writes error occurred in Liberty components to a log (amLiberty.error).- Parameters:
level- java.util.logging.Level indicating log levelmsgid- Message iddata- Message to be logged.
-
isLogEnabled
public static boolean isLogEnabled()
Checks if the log is enabled.- Returns:
- true if enabled.
-
-