code: func (daemon *Daemon) LogPluginEventWithAttributes(pluginID, refName, action string, attributes map[string]string) {
  	attributes["name"] = refName
  	actor := events.Actor{
  		ID:         pluginID,
  		Attributes: attributes,
  	}
  	daemon.EventsService.Log(action, events.PluginEventType, actor)
  }
docs: // LogPluginEventWithAttributes generates an event related to a plugin with specific given attributes.