public interface LogFileProvider
Modifier and Type | Method and Description |
---|---|
DataHandler |
downloadLogFile(String logFile,
String tenantDomain,
String serviceName)
Download the file
|
List<LogFileInfo> |
getLogFileInfoList(String tenantDomain,
String serviceName)
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 file log provider by reading the property comes with logging configuration file
This will be called immediately after creating a new instance of LogFileProvider.
|
void init(LoggingConfig loggingConfig)
loggingConfig
- - logging configurationList<LogFileInfo> getLogFileInfoList(String tenantDomain, String serviceName) throws LogViewerException
tenantDomain
- - Tenant domain eg: t1.comserviceName
- - Service name or Server keyLogViewerException
DataHandler downloadLogFile(String logFile, String tenantDomain, String serviceName) throws LogViewerException
logFile
- - File name which need to download, this should not be null.tenantDomain
- - Tenant domain eg: t1.comserviceName
- - Service name or Server keynull
if there is not such logfile.LogViewerException
Copyright © 2017 WSO2. All rights reserved.