Package com.googlecode.psiprobe.tools.logging.logback

Examples of com.googlecode.psiprobe.tools.logging.logback.LogbackFactoryAccessor


            log4JAccessor.setApplication(application);
            appenders.addAll(log4JAccessor.getAppenders());
        }

        // check for Logback loggers
        LogbackFactoryAccessor logbackAccessor = LogbackFactoryAccessor.create(cl);
        if (logbackAccessor != null) {
            logbackAccessor.setApplication(application);
            appenders.addAll(logbackAccessor.getAppenders());
        }
    }
View Full Code Here


        }
        return null;
    }

    private LogDestination getLogbackLogDestination(ClassLoader cl, Application application, boolean root, String logName, String appenderName) {
        LogbackFactoryAccessor manager = LogbackFactoryAccessor.create(cl);
        if (manager != null) {
            manager.setApplication(application);
            LogbackLoggerAccessor log = (root ? manager.getRootLogger() : manager.getLogger(logName));
            if (log != null) {
                return log.getAppender(appenderName);
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of com.googlecode.psiprobe.tools.logging.logback.LogbackFactoryAccessor

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.