OSID Logo
OSID Specifications
logging package
Version 3.1.0
Interfaceosid.logging.LogEntryQuerySession
Implementsosid.OsidSession
Implemented Byosid.logging.LogEntrySearchSession
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.

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
MethodgetLogId
Description

Gets the Log Id associated with this session.

Returnosid.id.Id the Log Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetLog
Description

Gets the Log associated with this session.

Returnosid.logging.Log the Log associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchLogEntries
Description

Tests if this user can perform LogEntry searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedLogView
Description

Federates the view for methods in this session. A federated view will include entries in logs which are children of this log in the log hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedLogView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this log only.

Compliancemandatory This method is must be implemented.
MethodgetLogEntryQuery
Description

Gets a log entry query

Returnosid.logging.LogEntryQuery the log entry query
Compliancemandatory This method must be implemented.
MethodgetLogEntriesByQuery
Description

Gets a list of log entries matching the given log entry query

Parametersosid.logging.LogEntryQuerylogEntryQuery the log entry query
Returnosid.logging.LogEntryList the returned LogEntryList
ErrorsNULL_ARGUMENT logEntryQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED logEntryQuery is not of this service
Compliancemandatory This method must be implemented.