Log DB API class

class cdb.common.db.api.logDbApi.LogDbApi
addLogAttachment(*args, **kwargs)

Add a new log attachment record.

Should typically be performed from the portal since unique names are generated.

Parameters:
  • logId
  • attachmentName
  • attachmentTag
  • attachmentDescription
  • kwargs
Returns:

(CdbObject) newly added record.

addLogTopic(*args, **kwargs)

Add a new log topic.

Parameters:
  • name
  • description
  • kwargs
Returns:

(CdbObject) newly added record.

getLogAttachments(*args, **kwargs)

Get all log attachment records.

Parameters:kwargs
Returns:CdbObject list of resulting record.
getLogEntriesForItemElementId(*args, **kwargs)

Get all logs for a particular item element id.

NOTE: logs of a particular item are in their ‘self element’.

Parameters:
  • itemElementId
  • logLevelName
  • kwargs
Returns:

(CdbObject) resulting record.

getLogTopics(*args, **kwargs)

Get all log topics.

Parameters:kwargs
Returns:CdbObject list of resulting record.
getLogs(*args, **kwargs)

Get all log records.

Parameters:kwargs
Returns:CdbObject list of resulting record.