/** * * @param sc * @return tail of log * @throws IOException */ public static String tailSystemLog(DistributionConfig sc, final int numLines) throws IOException { File logFile = sc.getLogFile(); if (logFile == null || logFile.equals(new File(""))) { return null; } if (!logFile.isAbsolute()) { logFile = new File(logFile.getAbsolutePath()); } return tailSystemLog(logFile, numLines); }
/** * * @param sc * @return tail of log * @throws IOException */ public static String tailSystemLog(DistributionConfig sc, final int numLines) throws IOException { File logFile = sc.getLogFile(); if (logFile == null || logFile.equals(new File(""))) { return null; } if (!logFile.isAbsolute()) { logFile = new File(logFile.getAbsolutePath()); } return tailSystemLog(logFile, numLines); }
try { InternalDistributedSystem sys = system; mainTail = BeanUtilFuncs.tailSystemLog(logFile, numLines); if (mainTail == null) { mainTail = ManagementStrings.TailLogResponse_NO_LOG_FILE_WAS_SPECIFIED_IN_THE_CONFIGURATION_MESSAGES_IS_BEING_DIRECTED_TO_STDOUT
try { InternalDistributedSystem sys = system; mainTail = BeanUtilFuncs.tailSystemLog(logFile, numLines); if (mainTail == null) { mainTail = ManagementStrings.TailLogResponse_NO_LOG_FILE_WAS_SPECIFIED_IN_THE_CONFIGURATION_MESSAGES_IS_BEING_DIRECTED_TO_STDOUT
childTail = BeanUtilFuncs.tailSystemLog(mlw.getChildLogFile(),numLines); mainTail = BeanUtilFuncs.tailSystemLog(sys.getConfig(), numLines); if (mainTail == null) { mainTail = LocalizedStrings.TailLogResponse_NO_LOG_FILE_WAS_SPECIFIED_IN_THE_CONFIGURATION_MESSAGES_WILL_BE_DIRECTED_TO_STDOUT
childTail = BeanUtilFuncs.tailSystemLog(lwa.getChildLogFile(),numLines); mainTail = BeanUtilFuncs.tailSystemLog(sys.getConfig(), numLines); if (mainTail == null) { mainTail = LocalizedStrings.TailLogResponse_NO_LOG_FILE_WAS_SPECIFIED_IN_THE_CONFIGURATION_MESSAGES_WILL_BE_DIRECTED_TO_STDOUT