/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: FedletLogger.java,v 1.3 2008/08/06 17:28:14 exu Exp $
*
*/
/**
* This class is an implementation of the Open Federation Logger interface
* for Fedlet deployment. The implementation uses JDK logger.
*/
private static boolean logStatus = false;
static {
}
/**
* Initializes the logging for the component.
*
* @param componentName the component name.
* @exception LogException if there is an error
* during initialization.
*/
}
/**
* Logs message to the access logs.
*
* @param level the log level , these are based on those
* defined in java.util.logging.Level, the values for
* level can be any one of the following : <br>
* <ul>
* <li>SEVERE (highest value)</li>
* <li>WARNING</li>
* <li>INFO</li>
* <li>CONFIG</li>
* <li>FINE</li>
* <li>FINER</li>
* <li>FINEST (lowest value)</li>
* </ul>
* @param messageId the message or a message identifier.
* @param data string array of dynamic data to be replaced in the message.
* @param session the User's session object
* @exception LogException if there is an error.
*/
) throws LogException {
}
/**
* Writes access to a component into a log.
* @param level indicating log level
* @param messageId Message id
* @param data string array of dynamic data only known during run time
* @param session Session object (it could be null)
* @param props representing log record columns
* @exception LogException if there is an error.
*/
public void access(
{
if (isAccessLoggable(level)) {
}
}
return messageId;
} else {
}
}
return messageId;
}
}
/**
* Logs error messages to the error logs.
*
* @param level the log level , these are based on those
* defined in java.util.logging.Level, the values for
* level can be any one of the following : <br>
* <ul>
* <li>SEVERE (highest value)</li>
* <li>WARNING</li>
* <li>INFO</li>
* <li>CONFIG</li>
* <li>FINE</li>
* <li>FINER</li>
* <li>FINEST (lowest value)</li>
* </ul>
* @param messageId the message or a message identifier.
* @param data string array of dynamic data to be replaced in the message.
* @param session the User's Session object.
* @exception LogException if there is an error.
*/
}
/**
* Writes error occurred in a component into a log.
* @param level indicating log level
* @param messageId Message id
* @param data string array of dynamic data only known during run time
* @param session Session object (it could be null)
* @param props log record columns
* @exception LogException if there is an error.
*/
public void error(
{
if (isErrorLoggable(level)) {
}
}
/**
* Returns <code>true</code> if logging is enabled.
*
* @return <code>true</code> if logging is enabled.
*/
public boolean isLogEnabled() {
return logStatus;
}
/**
* Checks if an access message of the given level would actually be logged
* by this logger. This check is based on the Logger's effective level.
*
* @param level a message logging level defined in java.util.logging.Level.
* @return true if the given message level is currently being logged.
*/
}
/**
* Checks if an error message of the given level would actually be logged
* by this logger. This check is based on the Logger's effective level.
*
* @param level a message logging level defined in java.util.logging.Level.
* @return true if the given message level is currently being logged.
*/
}
}