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 keyLogViewerException
List<LogEvent> getSystemLogs() throws LogViewerException
null
if no system LogEvents available.LogViewerException
List<LogEvent> getAllLogs(String tenantDomain, String serverKey) throws LogViewerException
tenantDomain
- - Tenant domain eg: t1.comserverKey
- - server keyLogViewerException
List<LogEvent> getLogsByAppName(String appName, String tenantDomain, String serverKey) throws LogViewerException
appName
- - application nametenantDomain
- - Tenant domain eg: t1.comserverKey
- - Server keyLogViewerException
List<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 keyLogViewerException
int logsCount(String tenantDomain, String serverKey) throws LogViewerException
tenantDomain
- - Tenant domain eg: t1.comserverKey
- - Server key0
if there is no LogEvent.LogViewerException
boolean clearLogs()
true
if clear operation success, false
if not.Copyright © 2018 WSO2. All rights reserved.