IDebug.java revision 5e89746cb5bec21d15a044ce89cfcdbf99d3d49d
1216N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 1216N/A * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved 1216N/A * The contents of this file are subject to the terms 1216N/A * of the Common Development and Distribution License 1216N/A * (the License). You may not use this file except in 1216N/A * compliance with the License. 1216N/A * You can obtain a copy of the License at 1216N/A * See the License for the specific language governing 1216N/A * permission and limitations under the License. 1216N/A * When distributing Covered Code, include this CDDL 1216N/A * Header Notice in each file and include the License file 1216N/A * If applicable, add the following below the CDDL Header, 1216N/A * with the fields enclosed by brackets [] replaced by 1216N/A * your own identifying information: 3232N/A * "Portions Copyrighted [year] [name of copyright owner]" 1216N/A * Portions Copyrighted 2014 ForgeRock AS * Allows a pluggable implementation of the Debug service within the Access * Manager SDK. The implementation of this interface as well as the * <code>com.sun.identity.shared.debug.IDebugProvider</code> interface together * provide the necessary functionality to replace or enhance the Debug service. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * @deprecated use {@link DebugLevel} instead. * Returns the name of the IDebug instance. The value is exactly equal * to the one that was first used to create this instance. * @return name of this <code>IDebug</code> instance * Returns current debug level used by this instance. The value is an * integer equals to one of the various debug level integers as defined in * the class <code>com.iplanet.am.util.Debug</code>. This value could be * <li><code>WARNING</code> * <li><code>MESSAGE</code> * @return an integer indicating the debug level used by this instance. * Allows runtime modification of the debug level used by this instance. The * argument <code>level</code> must be an integer exactly equal to one of * the debug level integers as defined in the class * <code>com.iplanet.am.util.Debug</code>. This value could be one of the * <li><code>WARNING</code> * <li><code>MESSAGE</code> * @param level An integer indicating the debug level to be used by this * Allows runtime modification of the backend used by this instance. * by resetting the debug instance to reinitialize itself. * NB : The debug file associated with this debug won't be closed. Because of * merge, a debug file could be used by more than one debug instances. * @param mf merge flag, on to create a single debug file * Allows runtime modification of the debug level used by this instance. The * argument <code>level</code> must be a string which should exactly match * the string definitions of debug level as defined in the class * <code>com.iplanet.am.util.Debug</code>. This value could be one of the * <li><code>STR_OFF</code> * <li><code>STR_ERROR</code> * <li><code>STR_WARNING</code> * <li><code>STR_MESSAGE</code> * <li><code>STR_ON</code> * @param level String representing the debug level to be used by this * Returns <code>true</code> if the current instance allows logging of * <code>MESSAGE</code> level debug messages. * @return <code>true</code> if <code>MESSAGE</code> level debugging is * Returns <code>true</code> if the current instance allows logging of * <code>WARNING</code> level debug messages. * @return <code>true</code> if <code>WARNING</code> level debugging is * Returns <code>true</code> if the current instances allows logging of * <code>ERROR</code> level debug messages. * @return <code>true</code> if <code>ERROR</code> level debugging is * Allows the recording of messages if the debug level is set to * <code>MESSAGE</code> for this instance. * @param message Message to be recorded. * @param th The optional <code>java.lang.Throwable</code> which if * present will be used to record the stack trace. * Allows the recording of messages if the debug level is set to * <code>WARNING</code> or higher for this instance. * @param message Message to be recorded. * @param th The optional <code>java.lang.Throwable</code> which if * present will be used to record the stack trace. * Allows the recording of messages if the debug level is set to * <code>ERROR</code> or higher for this instance. * @param message Message to be recorded. * @param th the optional <code>java.lang.Throwable</code> which if * present will be used to record the stack trace.