OSID Logo
OSID Specifications
logging package
Version 3.1.0
Interfaceosid.logging.LogEntrySearchSession
Implementsosid.logging.LogEntryQuerySession
Used Byosid.logging.LoggingManager
osid.logging.LoggingProxyManager
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.LogEntrySearch the log entry search
Compliancemandatory This 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.LogEntrySearchOrder the log entry search order
Compliancemandatory This method must be implemented.
MethodgetLogEntriesBySearch
Description

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

Parametersosid.logging.LogEntryQuerylogEntryQuery the log entry query
osid.logging.LogEntrySearchlogEntrySearch the log entry search
Returnosid.logging.LogEntrySearchResults the returned search results
ErrorsNULL_ARGUMENT logEntryQuery or logEntrySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED logEntryQuery or logEntrySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetLogEntryQueryFromInspector
Description

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

Parametersosid.logging.LogQueryInspectorlogEntryQueryInspector a log entry query inspector
Returnosid.logging.LogEntryQuery the log entry query
ErrorsNULL_ARGUMENT logEntryQueryInspector is null
UNSUPPORTED logEntryQueryInspector is not of this service
Compliancemandatory This method must be implemented.