code: func (e *Events) Log(action, eventType string, actor eventtypes.Actor) {
  	now := time.Now().UTC()
  	jm := eventtypes.Message{
  		Action:   action,
  		Type:     eventType,
  		Actor:    actor,
  		Scope:    "local",
  		Time:     now.Unix(),
  		TimeNano: now.UnixNano(),
  	}
  
  	// fill deprecated fields for container and images
  	switch eventType {
  	case eventtypes.ContainerEventType:
  		jm.ID = actor.ID
  		jm.Status = action
  		jm.From = actor.Attributes["image"]
  	case eventtypes.ImageEventType:
  		jm.ID = actor.ID
  		jm.Status = action
  	}
  
  	e.PublishMessage(jm)
  }
docs: // Log creates a local scope message and publishes it