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 LogFileProvider
loggingConfig
- -public List<LogFileInfo> getLogFileInfoList(String tenantDomain, String serverKey) throws LogViewerException
LogFileProvider
getLogFileInfoList
in interface LogFileProvider
tenantDomain
- - Tenant domain eg: t1.comserverKey
- - Service name or Server keyLogViewerException
public DataHandler downloadLogFile(String logFile, String tenantDomain, String serverKey) throws LogViewerException
LogFileProvider
downloadLogFile
in interface LogFileProvider
logFile
- - 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.LogViewerException
Copyright © 2019 WSO2. All rights reserved.