Package com.googlecode.psiprobe.tools.logging.jdk

Examples of com.googlecode.psiprobe.tools.logging.jdk.Jdk14LoggerAccessor


    private LogDestination getJdk14LogDestination(ClassLoader cl, Application application, boolean root, String logName, String handlerIndex) {
        Jdk14ManagerAccessor manager = Jdk14ManagerAccessor.create(cl);
        if (manager != null) {
            manager.setApplication(application);
            Jdk14LoggerAccessor log = (root ? manager.getRootLogger() : manager.getLogger(logName));
            if (log != null) {
                return log.getHandler(handlerIndex);
            }
        }
        return null;
    }
View Full Code Here


                    visit(accessor);
                    logger = invokeMethod(logger, "getParent", null, null);
                }
            } else if ("java.util.logging.Logger".equals(logger.getClass().getName())) {
                while (logger != null) {
                    Jdk14LoggerAccessor accessor = new Jdk14LoggerAccessor();
                    accessor.setTarget(logger);
                    accessor.setApplication(getApplication());
                    accessor.setContext(true);
                    visit(accessor);
                    logger = invokeMethod(logger, "getParent", null, null);
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.googlecode.psiprobe.tools.logging.jdk.Jdk14LoggerAccessor

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.