This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Retrieving Logs

Logs can be retrieved based on username, time period, action performed, and specific resource. For this purpose, the method getLogs returns an array while the method getLogCollection returns a collection.

LogEntry[] logentries = registry.getLogs("c1/c2/r3", LogEntry.ALL, "admin", new Date(2010,4,7), new Date(2010,4,12), true);

LogEntryCollection leCollection = registry.getLogCollection("c1/c2/r3", LogEntry.ALL, "admin", new Date(2010,4,7), new Date(2010,4,12), true);

For more information about logs, see Logging and System Logs.