OSID Logo
OSID Specifications
logging package
Version 3.1.0
Interfaceosid.logging.LoggingSession
Implementsosid.OsidSession
Used Byosid.logging.LoggingManager
osid.logging.LoggingProxyManager
Description

This session is used to log entries to a log.

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
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanLog
Description

Tests if this user can log. 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 logging operations.

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

Logs an item. This method is a shortcut to createLogEntry().

Parametersobjectcontent the entry to log
osid.type.TypecontentType the type of this entry which must be one of the types returned by LoggingManager.getContentTypes()
ErrorsINVALID_ARGUMENT content is not of contentType
NULL_ARGUMENT content or contentType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED LoggingManager.supportsContentType(contentType) is false
Compliancemandatory This method must be implemented.
MethodlogAtPriority
Description

Logs an item.

Parametersosid.type.TypepriorityType the entry priority
objectcontent the entry to log
osid.type.TypecontentType the type of this entry which must be one of the types returned by LoggingManager.getContentTypes()
ErrorsINVALID_ARGUMENT content is not of contentType
NULL_ARGUMENT content, contentType or priorityType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED LoggingManager.supportsContentType(contentType) is false or LoggingManager.supportsPriorityType(priorityType) is false
Compliancemandatory This method must be implemented.
MethodgetLogEntryForm
Description

Gets a log entry form for creating a log entry.

Returnosid.logging.LogEntryForm the log entry form
Compliancemandatory This method must be implemented.
MethodcreateLogEntry
Description

Logs an entry through the log entry form.

Parametersosid.logging.LogEntryFormlogEntryForm the log entry form
ErrorsINVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT logEntryForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED logEntryForm is not of this service
Compliancemandatory This method must be implemented.