SpssLogItem Class (Python)

The SpssLogItem class represents a log item in an output document. You get an SpssLogItem object from the collection of output items in an output document.

Example: Getting Log Items

import SpssClient
SpssClient.StartClient()

OutputDoc = SpssClient.GetDesignatedOutputDoc()
OutputItems = OutputDoc.GetOutputItems()

for index in range(OutputItems.Size()):
   OutputItem = OutputItems.GetItemAt(index)
   if OutputItem.GetType() == SpssClient.OutputItemType.LOG:
        LogItem = OutputItem.GetSpecificType()
  • Log items have an output item type of SpssClient.OutputItemType.LOG.
  • Once an output item has been identified as a log item, you get an SpssLogItem object by calling the GetSpecificType method on the output item object. In this example, LogItem is an SpssLogItem object.