mirror of
https://github.com/sst/opencode.git
synced 2025-08-11 08:48:00 +00:00
21 lines
460 B
Go
21 lines
460 B
Go
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
|
|
}
|