/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LogUtil.java,v 1.4 2008/08/06 17:28:07 exu Exp $
*
*/
/**
* The <code>LogUtil</code> class defines methods which are used by
* Liberty compoment to write logs.
*/
public class LogUtil {
/**
* Success msgid.
*/
/**
* Failure msgid.
*/
/**
* Authentication Service OK msgid.
*/
/**
* Authentication Service Continue msgid.
*/
/**
* Authentication Service Abort msgid.
*/
/**
* PP Query Success msgid.
*/
/**
* PP Query Failure msgid.
*/
/**
* PP Modify Failure msgid.
*/
/**
* PP Modify Failure msgid.
*/
/**
* PP Interaction Success msgid.
*/
"PP_Interaction_Success";
/**
* PP Interaction Failure msgid.
*/
"PP_Interaction_Failure";
/**
* Discovery Service Lookup Success msgid.
*/
/**
* Discovery Service Lookup Failure msgid.
*/
/**
* Discovery Service Update Success msgid.
*/
/**
* Discovery Service Update Failure msgid.
*/
/**
* IneractionManager sending message to SP.
*/
= "IS_Sending_Message";
/**
* IneractionManager resending message to SP.
*/
= "IS_Resending_Message";
/**
* IneractionManager returning response message.
*/
= "IS_Returning_Response_Message";
/**
* IneractionManager redirected user agent to interaction service.
*/
= "IS_Redirected_User_Agent";
/**
* IneractionManager redirected user agent back to SP.
*/
= "IS_Redirected_User_Agent_Back";
/**
* InteractionService presented query page to user agent.
*/
= "IS_Presented_Query_To_User_Agent";
/**
* Interaction service collected response from user agent.
*/
= "IS_Collected_Response_From_User_Agent";
/**
* Interaction service returning response element.
*/
= "IS_Returning_Response_Element";
private static boolean logStatus = false;
static {
"INACTIVE");
logStatus = true;
try {
} catch (LogException le) {
}
}
}
/**
* Writes access to Liberty components to a log (amLiberty.access).
* @param level java.util.logging.Level indicating log level
* @param msgid Message id
* @param data Message to be logged.
*/
try {
} catch (LogException le) {
}
}
}
/**
* Writes error occurred in Liberty components to a log (amLiberty.error).
* @param level java.util.logging.Level indicating log level
* @param msgid Message id
* @param data Message to be logged.
*/
try {
} catch (LogException le) {
}
}
}
/**
* Checks if the log is enabled.
* @return true if enabled.
*/
public static boolean isLogEnabled() {
return logStatus;
}
}