diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-09 19:07:39 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-09 19:07:39 +0200 |
| commit | d39d52d95d6aaab67fb3a17efb9ed62cc290e72f (patch) | |
| tree | 940bad6f0c847ceb213e5fc684b6d87cbf9d6996 /internal/logging/message.go | |
| parent | 0d8d324ac6e640b95f4f2f62fd189399a959319a (diff) | |
| download | opencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.tar.gz opencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.zip | |
finish logs page
Diffstat (limited to 'internal/logging/message.go')
| -rw-r--r-- | internal/logging/message.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/internal/logging/message.go b/internal/logging/message.go index a71788911..30ae8f379 100644 --- a/internal/logging/message.go +++ b/internal/logging/message.go @@ -4,13 +4,15 @@ 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 +// 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 { |
