package events import "fmt" type Log struct { ID string `json:"id,omitempty"` Level string `json:"level"` Code string `json:"code"` Message string `json:"message"` } func (l Log) EventDescription() string { return fmt.Sprintf("LOG(id:%s level:%s code:%s :: %s)", l.ID, l.Level, l.Code, l.Message) }