Package org.wso2.carbon.logging.view.ui
Class LogFileProvider
java.lang.Object
org.wso2.carbon.logging.view.ui.LogFileProvider
This class will handle log file related operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadLogFile(String logFile) This method will download a log file with the given name.getLogFileInfoList(String tenantDomain, String serverKey) This method will return the information of log files in repository/logs.
-
Constructor Details
-
LogFileProvider
public LogFileProvider()
-
-
Method Details
-
getLogFileInfoList
This method will return the information of log files in repository/logs.- Parameters:
tenantDomain- - Tenant domain eg: t1.com.serverKey- Server name.- Returns:
- Info list of log files.
-
downloadLogFile
This method will download a log file with the given name.- Parameters:
logFile- - File name which need to download, this should not be null.- Returns:
- DataHandler whith input stream of the file.
- Throws:
LogViewerException- Error occurred while reading the file.
-