OSID Logo
OSID Specifications
logging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.logging.LogEntrySearchSession
Implementsosid.logging.LogEntryQuerySession
Description

This session provides methods for searching among log entries. The search query is constructed using the LogEntryQuery.

getLogEntriesByQuery() is the basic search method and returns a list of log entries. A more advanced search may be performed with getLogEntriesBySearch(). It accepts a LogEntrySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getLogEntriesBySearch() returns a LogEntrySearchResults that can be used to access the resulting LogEntryList or be used to perform a search within the result set through LogEntrySearch.

This session defines views that offer differing behaviors for searching.

  • federated log view: searches include entries in logs of which this log is an ancestor in the log hierarchy
  • isolated log view: searches are restricted to entries in this log only
MethodgetLogEntrySearch
Description

Gets a log entry search.

Returnosid.logging.LogEntrySearchthe log entry search
CompliancemandatoryThis method must be implemented.
MethodgetLogEntrySearchOrder
Description

Gets a log entry search order. The LogEntrySearchOrder is supplied to a LogEntrySearch to specify the ordering of results.

Returnosid.logging.LogEntrySearchOrderthe log entry search order
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.logging.LogEntryQuerylogEntryQuerythe log entry query
osid.logging.LogEntrySearchlogEntrySearchthe log entry search
Returnosid.logging.LogEntrySearchResultsthe returned search results
ErrorsNULL_ARGUMENT logEntryQuery or logEntrySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED logEntryQuery or logEntrySearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetLogEntryQueryFromInspector
Description

Gets a log entry query from an inspector. The inspector is available from a LogEntrySearchResults.

Parametersosid.logging.LogQueryInspectorlogEntryQueryInspectora log entry query inspector
Returnosid.logging.LogEntryQuerythe log entry query
ErrorsNULL_ARGUMENT logEntryQueryInspector is null
UNSUPPORTED logEntryQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.