This documentation is for WSO2 Application Server 5.2.0. View documentation for the latest release.
Page Comparison - Retrieving Logs (v.2 vs v.3) - Application Server 5.2.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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.

Code Block
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);