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

import (
	"time"
)

// Message is the event payload for a log message
type Message struct {
	ID         string
	Time       time.Time
	Level      string
	Message    string `json:"msg"`
	Attributes []Attr
}

type Attr struct {
	Key   string
	Value string
}