OSID Logo
OSID Specifications
logging batch package
Version 3.1.0
Interfaceosid.logging.batch.LogEntryPurgeSession
Implementsosid.OsidSession
Used Byosid.logging.batch.LoggingBatchManager
osid.logging.batch.LoggingBatchProxyManager
Description

This session defines methods to trim and purge logs.

MethodpurgeLogEntries
Description

Deletes all LogEntries in this Log.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodpurgeLogEntriesByResource
Description

Deletes log entries for the given resource.

Parametersosid.id.IdresourceId the Id of a resource
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodpurgeLogEntriesByDate
Description

Deletes log entries between the given date range inclusive.

Parametersosid.calendaring.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodpurgeLogEntriesByResourceAndDate
Description

Deletes log entries for the given resource between the given date range inclusive.

Parametersosid.id.IdresourceId the Id of a resource
osid.calendaring.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodpurgeLogEntriesByPriorityTypeAndByDate
Description

Deletes log entries at or below the given priority between the given date range inclusive.

Parametersosid.type.TypepriorityType a priority type
osid.calendaring.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT priorityType, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.