public class LogViewerClient extends Object
| Modifier and Type | Field and Description |
|---|---|
org.wso2.carbon.logging.view.stub.LogViewerStub |
stub |
| Constructor and Description |
|---|
LogViewerClient(String cookie,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearLogs()
Clear all the logs in the buffer.
|
DataHandler |
downloadArchivedLogFiles(String logFile) |
void |
downloadArchivedLogFiles(String logFile,
javax.servlet.http.HttpServletResponse response)
Download log file with a given name.
|
List<LogEvent> |
getAllLogs()
Take all the log events from buffer for the current tenant id.
|
String[] |
getApplicationNames()
This method will return tha application names can be found in logs.
|
String |
getImageName(String type)
This method will return the matching image url for a given log level.
|
PaginatedLogFileInfo |
getLocalLogFiles(int pageNumber,
String tenantDomain,
String serverKey)
Get paginated list of log files in the repository/logs folder.
|
String[] |
getLogLevels()
This method will return all supported log levels.
|
PaginatedLogEvent |
getPaginatedApplicationLogEvents(int pageNumber,
String type,
String keyword,
String applicationName)
This method will return logs filtered by a given application name.
|
PaginatedLogEvent |
getPaginatedLogEvents(int pageNumber,
String type,
String keyword)
Get paginated log events filtered by type and search keyword.
|
String[] |
getServiceNames() |
boolean |
isManager() |
static boolean |
isValidTenant()
Check whether the current tenant is valid.
|
public void clearLogs()
public List<LogEvent> getAllLogs()
public String[] getApplicationNames()
public PaginatedLogEvent getPaginatedApplicationLogEvents(int pageNumber, String type, String keyword, String applicationName)
pageNumber - pagination page number.type - log level.keyword - search keyword.applicationName - application name.public String getImageName(String type)
type - Log level.public static boolean isValidTenant()
public PaginatedLogEvent getPaginatedLogEvents(int pageNumber, String type, String keyword)
pageNumber - pagination page number.type - log level.keyword - search keyword.public PaginatedLogFileInfo getLocalLogFiles(int pageNumber, String tenantDomain, String serverKey)
pageNumber - page number.tenantDomain - tenant domain.serverKey - search keyword.public boolean isManager()
public String[] getServiceNames() throws LogViewerException
LogViewerExceptionpublic String[] getLogLevels()
public DataHandler downloadArchivedLogFiles(String logFile) throws LogViewerException
LogViewerExceptionpublic void downloadArchivedLogFiles(String logFile, javax.servlet.http.HttpServletResponse response)
logFile - name of the log file.response - file download http response.Copyright © 2026 WSO2. All rights reserved.