Package org.jboss.logmanager

Examples of org.jboss.logmanager.ExtHandler


     * @param handler     the handler to disable.
     * @param handlerName the name of the handler to enable.
     */
    static void enableHandler(final Handler handler, final String handlerName) {
        if (handler instanceof ExtHandler) {
            final ExtHandler extHandler = (ExtHandler) handler;
            extHandler.setEnabled(true);
        } else {
            final Map<String, Filter> disableHandlers = ROOT.getAttachment(DISABLED_HANDLERS_KEY);
            if (disableHandlers != null && disableHandlers.containsKey(handlerName)) {
                synchronized (HANDLER_LOCK) {
                    final Filter filter = disableHandlers.get(handlerName);
View Full Code Here


     * @param handler     the handler to disable.
     * @param handlerName the handler name to disable.
     */
    static void disableHandler(final Handler handler, final String handlerName) {
        if (handler instanceof ExtHandler) {
            final ExtHandler extHandler = (ExtHandler) handler;
            extHandler.setEnabled(false);
        } else {
            Map<String, Filter> disableHandlers = ROOT.getAttachment(DISABLED_HANDLERS_KEY);
            if (disableHandlers == null) {
                disableHandlers = new HashMap<String, Filter>();
                final Map<String, Filter> current = ROOT.attachIfAbsent(DISABLED_HANDLERS_KEY, disableHandlers);
View Full Code Here

TOP

Related Classes of org.jboss.logmanager.ExtHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.