message.go
1package logging
2
3import (
4 "time"
5)
6
7// LogMessage is the event payload for a log message
8type LogMessage struct {
9 ID string
10 Time time.Time
11 Level string
12 Persist bool // used when we want to show the mesage in the status bar
13 PersistTime time.Duration // used when we want to show the mesage in the status bar
14 Message string `json:"msg"`
15 Attributes []Attr
16}
17
18type Attr struct {
19 Key string
20 Value string
21}