Stian Fredrik Aune
2 years ago
4 changed files with 42 additions and 13 deletions
@ -0,0 +1,14 @@ |
|||
package events |
|||
|
|||
import "fmt" |
|||
|
|||
type Log struct { |
|||
ID string `json:"id"` |
|||
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) |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue