Package org.jstripe.tomcat.probe.tools.logging

Examples of org.jstripe.tomcat.probe.tools.logging.LogDestination


        if (request.getSession() != null) {
            List logDestinations = (List) request.getSession().getAttribute("logs");
            if (logDestinations != null) {
                int logIndex = RequestUtils.getIntParameter(request, "id", -1);
                if (logIndex != -1 && logIndex >= 0 && logIndex <= logDestinations.size()) {
                    LogDestination dest = (LogDestination) logDestinations.get(logIndex - 1);
                    if (dest.getFile() != null && dest.getFile().exists()) {
                        modelAndView = handleLogFile(request, response, dest.getFile());
                        logFound = true;
                    } else {
           System.out.println(dest.getFile() + ": file not found");
                       // logger.error(dest.getFile() + ": file not found");
                    }
                } else {

System.out.println("LogHandlerController List index " + logIndex + " is either missing or invalid");
View Full Code Here

TOP

Related Classes of org.jstripe.tomcat.probe.tools.logging.LogDestination

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.