add log event + small bugfixes.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user