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
14 lines
317 B
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)
|
|
}
|