public interface LogProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearLogs()
Do clear operation, eg: if it is a in memory log provider then this can be used to clear the
memory.
|
List<LogEvent> |
getAllLogs(String tenantDomain,
String serverKey)
Return a list of all the logs available under given domain and server key
|
List<String> |
getApplicationNames(String tenantDomain,
String serverKey)
Return a list of all application names deployed under provided tenant domain and server key
|
List<LogEvent> |
getLogs(String type,
String keyword,
String appName,
String tenantDomain,
String serverKey)
Returns a list of all LogEvents related to the given application, which match to given type
and LogEvent message has given key word with it.
|
List<LogEvent> |
getLogsByAppName(String appName,
String tenantDomain,
String serverKey)
Return a list of all the LogEvents belongs to the application, which is deployed under given
tenant domain and server key.
|
List<LogEvent> |
getSystemLogs()
Return a list of system LogEvents
|
void |
init(LoggingConfig loggingConfig)
Initialize the log provider by reading the property comes with logging configuration file
This will be called immediately after creating new instance of LogProvider
|
int |
logsCount(String tenantDomain,
String serverKey)
Return LogEvent count.
|
void init(LoggingConfig loggingConfig)
loggingConfig - List<String> getApplicationNames(String tenantDomain, String serverKey) throws LogViewerException
tenantDomain - - Tenant domain eg: t1.comserverKey - - Server keyLogViewerExceptionList<LogEvent> getSystemLogs() throws LogViewerException
null if no system LogEvents available.LogViewerExceptionList<LogEvent> getAllLogs(String tenantDomain, String serverKey) throws LogViewerException
tenantDomain - - Tenant domain eg: t1.comserverKey - - server keyLogViewerExceptionList<LogEvent> getLogsByAppName(String appName, String tenantDomain, String serverKey) throws LogViewerException
appName - - application nametenantDomain - - Tenant domain eg: t1.comserverKey - - Server keyLogViewerExceptionList<LogEvent> getLogs(String type, String keyword, String appName, String tenantDomain, String serverKey) throws LogViewerException
type - - Log type , eg: ALL , INFO , DEBUG etc ....keyword - - Key wordappName - - Application nametenantDomain - - Tenant domain eg: t1.comserverKey - - Server keyLogViewerExceptionint logsCount(String tenantDomain, String serverKey) throws LogViewerException
tenantDomain - - Tenant domain eg: t1.comserverKey - - Server key0 if there is no LogEvent.LogViewerExceptionboolean clearLogs()
true if clear operation success, false if not.Copyright © 2017 WSO2. All rights reserved.