Package com.appiancorp.suiteapi.logs
Class LogFileInfo
java.lang.Object
com.appiancorp.suiteapi.logs.LogFileInfo
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 Summary
ConstructorsConstructorDescriptionLogFileInfo(String name, String relativePath, long size, long lastModified, boolean directory) -
Method Summary
Modifier and TypeMethodDescriptionlongLast modified timestamp as epoch milliseconds.getName()The file name (e.g., "app.log.2025-01-01").Path relative to the shared-logs root, including the log source name (e.g., "appian-webapp-0/audit/user_management.csv").longgetSize()File size in bytes.booleanTrue if this represents a directory, not a file.
-
Constructor Details
-
LogFileInfo
-
-
Method Details
-
getName
The file name (e.g., "app.log.2025-01-01"). -
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.
-