On retrospect, I think you are referring to the Asynchronous Logging API right? What you pass to the action is a ToObject() of an entity record (it must be an entity record). The platform then knows what entity to log the record in (i.e. the entity the parameter is a record of).