code: func (daemon *Daemon) LogDaemonEventWithAttributes(action string, attributes map[string]string) {
  	if daemon.EventsService != nil {
  		if info, err := daemon.SystemInfo(); err == nil && info.Name != "" {
  			attributes["name"] = info.Name
  		}
  		actor := events.Actor{
  			ID:         daemon.ID,
  			Attributes: attributes,
  		}
  		daemon.EventsService.Log(action, events.DaemonEventType, actor)
  	}
  }
docs: // LogDaemonEventWithAttributes generates an event related to the daemon itself with specific given attributes.