OSID Logo
OSID Specifications
logging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.logging.LogEntry
Implementsosid.OsidObject
Description

A log entry consists of a time, an agent, and a priority type.

MethodgetPriority
Description

Gets the priority level of this entry.

Returnosid.type.Typethe priority level
CompliancemandatoryThis method must be implemented.
MethodgetTimestamp
Description

Gets the time this entry was logged.

Returnosid.calendaring.DateTimethe time stamp of this entry
CompliancemandatoryThis method must be implemented.
MethodgetResourceId
Description

Gets the resource Id who created this entry.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetResource
Description

Gets the Resource who created this entry.

Returnosid.resource.Resourcethe Resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAgentId
Description

Gets the agent Id who created this entry.

Returnosid.id.Idthe agent Id
CompliancemandatoryThis method must be implemented.
MethodgetAgent
Description

Gets the Agent who created this entry.

Returnosid.authentication.Agentthe Agent
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetLogEntryRecord
Description

Gets the log entry record corresponding to the given LogEntry record Type. This method is used to retrieve an object implementing the requested record. The logEntryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(logEntryRecordType) is true .

Parametersosid.type.TypelogEntryRecordTypethe type of log entry record to retrieve
Returnosid.logging.records.LogEntryRecordthe log entry record
ErrorsNULL_ARGUMENT logEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(logEntryRecordType) is false
CompliancemandatoryThis method must be implemented.