public class FileLogProvider extends Object implements LogFileProvider
| Constructor and Description |
|---|
FileLogProvider() |
| Modifier and Type | Method and Description |
|---|---|
DataHandler |
downloadLogFile(String logFile,
String tenantDomain,
String serverKey)
Download the file
|
List<LogFileInfo> |
getLogFileInfoList(String tenantDomain,
String serverKey)
Return a list of information about the log files, which is available under given tenant domain and
serviceName
eg: log name, log date, log size
|
void |
init(LoggingConfig loggingConfig)
Initialize the log provider by reading the property comes with logging configuration file
This will be called immediate after create new instance of LogProvider
|
public void init(LoggingConfig loggingConfig)
init in interface LogFileProviderloggingConfig - -public List<LogFileInfo> getLogFileInfoList(String tenantDomain, String serverKey) throws LogViewerException
LogFileProvidergetLogFileInfoList in interface LogFileProvidertenantDomain - - Tenant domain eg: t1.comserverKey - - Service name or Server keyLogViewerExceptionpublic DataHandler downloadLogFile(String logFile, String tenantDomain, String serverKey) throws LogViewerException
LogFileProviderdownloadLogFile in interface LogFileProviderlogFile - - File name which need to download, this should not be null.tenantDomain - - Tenant domain eg: t1.comserverKey - - Service name or Server keynull if there is not such logfile.LogViewerExceptionCopyright © 2017 WSO2. All rights reserved.