summaryrefslogtreecommitdiffhomepage
path: root/internal/logging/message.go
blob: 30ae8f379ed5a64c30a6f3a84ef25fafd59850d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package logging

import (
	"time"
)

// LogMessage is the event payload for a log message
type LogMessage struct {
	ID          string
	Time        time.Time
	Level       string
	Persist     bool          // used when we want to show the mesage in the status bar
	PersistTime time.Duration // used when we want to show the mesage in the status bar
	Message     string        `json:"msg"`
	Attributes  []Attr
}

type Attr struct {
	Key   string
	Value string
}