add log event + small bugfixes.

This commit is contained in:
2022-12-29 18:19:25 +01:00
parent edbc576eed
commit 5333a403ee
4 changed files with 40 additions and 11 deletions
+14
View File
@@ -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)
}