- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for getLogFilePath (0.1 seconds)
-
src/main/java/org/codelibs/fess/job/ExecJob.java
buf.append("-Xlog:gc*,gc+age=trace,safepoint:file="); if (logFilePath != null) { buf.append(logFilePath); } else { buf.append(ComponentUtil.getSystemHelper().getLogFilePath()); } buf.append(File.separator); buf.append("gc-").append(getExecuteType()).append(".log"); buf.append(":utctime,pid,tags:filecount=5,filesize=64m");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/ExecJobTest.java
// Register mock helpers ComponentUtil.register(new SystemHelper() { @Override public String getLogFilePath() { return tempDir.getAbsolutePath(); } }, "systemHelper"); ComponentUtil.register(new ProcessHelper() { @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 24.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java
public ActionResponse download(final String id) { final String filename = sanitizeFilename(new String(Base64.getDecoder().decode(id), StandardCharsets.UTF_8)); final String logFilePath = systemHelper.getLogFilePath(); if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) { final Path path = Paths.get(logFilePath, filename); return asStream(filename).contentTypeOctetStream().stream(out -> {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 5.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
return LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); } /** * Gets the path to the log file. * * @return The log file path. */ public String getLogFilePath() { final String value = System.getProperty("fess.log.path"); if (value != null) { return value; } final String userDir = System.getProperty("user.dir");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 43.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java
* @param id the diagnostic ID for organizing files in the ZIP */ protected void writeLogFiles(final ZipOutputStream zos, final String id) { final String logFilePath = systemHelper.getLogFilePath(); if (StringUtil.isNotBlank(logFilePath)) { final Path logDirPath = Paths.get(logFilePath); try (Stream<Path> stream = Files.list(logDirPath)) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 23K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
public void test_getLogFilePath() { final File logFile = new File(systemHelper.getLogFilePath()); assertEquals("logs", logFile.getName()); assertEquals("target", logFile.getParentFile().getName()); try { System.setProperty("fess.log.path", "logpath"); assertEquals("logpath", systemHelper.getLogFilePath()); } finally { System.clearProperty("fess.log.path"); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 44.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/CrawlJob.java
cmdList.add("-Dfess." + getExecuteType() + ".process=true"); cmdList.add("-Dfess.log.path=" + (logFilePath != null ? logFilePath : systemHelper.getLogFilePath())); addSystemProperty(cmdList, "fess.log.name", getLogName("fess"), getLogName(StringUtil.EMPTY)); if (logLevel == null) { addSystemProperty(cmdList, "fess.log.level", null, null);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 19.6K bytes - Click Count (0)