Class LogFileProvider

java.lang.Object
org.wso2.carbon.logging.view.ui.LogFileProvider

public class LogFileProvider extends Object
This class will handle log file related operations.
  • Constructor Details

    • LogFileProvider

      public LogFileProvider()
  • Method Details

    • getLogFileInfoList

      public List<LogFileInfo> getLogFileInfoList(String tenantDomain, String serverKey)
      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

      public DataHandler downloadLogFile(String logFile) throws LogViewerException
      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.