Log

Log

class dlkit.services.logging_.Log(provider_manager, catalog, runtime, proxy, **kwargs)

Bases: dlkit.osid.objects.OsidCatalog, dlkit.osid.sessions.OsidSession

A Log represents a collection of entries.

Like all OsidObjects, a Log is identified by its Id and any persisted references should use the Id.

get_log_record(log_record_type)

Gets the record corresponding to the given Log record Type.

This method is used to retrieve an object implementing the requested record. The log_record_type may be the Type returned in get_record_types() or any of its parents in a Type hierarchy where has_record_type(log_record_type) is true .

Parameters:log_record_type (osid.type.Type) – the type of log record to retrieve
Returns:the log record
Return type:osid.logging.records.LogRecord
Raise:NullArgumentlog_record_type is null
Raise:OperationFailed – unable to complete request
Raise:Unsupportedhas_record_type(log_record_type) is false

compliance: mandatory – This method must be implemented.