Class LogFileInfo

java.lang.Object
com.appiancorp.suiteapi.logs.LogFileInfo

public class LogFileInfo extends Object
Metadata about a log file or directory.

Obtain instances via LogAccessService.listFiles(String) or LogAccessService.getFileInfo(String). To read file contents, pass getRelativePath() to LogAccessService.readFile(String).

  • Constructor Details

    • LogFileInfo

      public LogFileInfo(String name, String relativePath, long size, long lastModified, boolean directory)
  • Method Details

    • getName

      public String getName()
      The file name (e.g., "app.log.2025-01-01").
    • getRelativePath

      public String getRelativePath()
      Path relative to the shared-logs root, including the log source name (e.g., "appian-webapp-0/audit/user_management.csv").
    • getSize

      public long getSize()
      File size in bytes. Returns 0 for directories.
    • getLastModified

      public long getLastModified()
      Last modified timestamp as epoch milliseconds.
    • isDirectory

      public boolean isDirectory()
      True if this represents a directory, not a file.