Package org.wso2.carbon.logging.view.ui

## 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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `LogFileProvider()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `DataHandler` | `downloadLogFile​(String logFile)` | This method will download a log file with the given name.
    `List<LogFileInfo>` | `getLogFileInfoList​(String tenantDomain, String serverKey)` | This method will return the information of log files in repository/logs.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LogFileProvider

          public LogFileProvider()

  - ### Method Detail

    - #### 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.