You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
317 B

2 years ago
  1. package events
  2. import "fmt"
  3. type Log struct {
  4. ID string `json:"id,omitempty"`
  5. Level string `json:"level"`
  6. Code string `json:"code"`
  7. Message string `json:"message"`
  8. }
  9. func (l Log) EventDescription() string {
  10. return fmt.Sprintf("LOG(id:%s level:%s code:%s :: %s)", l.ID, l.Level, l.Code, l.Message)
  11. }