Examples of LogDTO


Examples of gaej2011.model.LogDTO

            LogServiceFactory.getLogService().fetch(query).iterator();
        List<LogDTO> logs = new ArrayList<LogDTO>(LIMIT);
        int count = 0;
        while (i.hasNext() && count++ < LIMIT) {
            RequestLogs log = i.next();
            LogDTO dto = new LogDTO();
            dto.setCombined(log.getCombined());
            dto.setOffset(log.getOffset());
            List<AppLogLine> logLines = log.getAppLogLines();
            for (AppLogLine logLine : logLines) {
                dto.getLogLevels().add(logLine.getLogLevel().name());
                dto.getLogLines().add(logLine.getLogMessage());
            }
            logs.add(dto);
        }
        response.getWriter().println(LogDTOMeta.get().modelsToJson(logs));
        response.flushBuffer();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.