Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getLogFilePath (0.36 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

            final String filename = new String(Base64.getDecoder().decode(id), StandardCharsets.UTF_8).replace("..", "").replaceAll("\\s", "");
            final String logFilePath = systemHelper.getLogFilePath();
            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/log/ApiAdminLogAction.java

            final String filename = new String(Base64.getDecoder().decode(id), StandardCharsets.UTF_8).replace("..", "").replaceAll("\\s", "");
            final String logFilePath = systemHelper.getLogFilePath();
            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. 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");
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. 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");
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

                logger.warn("Failed to access system.properties.", e);
            }
        }
    
        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)) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. 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);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            final Instant instant = Instant.ofEpochMilli(getCurrentTimeAsLong());
            return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
        }
    
        public String getLogFilePath() {
            final String value = System.getProperty("fess.log.path");
            if (value != null) {
                return value;
            }
            final String userDir = System.getProperty("user.dir");
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun May 26 05:52:29 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top