From d39d52d95d6aaab67fb3a17efb9ed62cc290e72f Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 9 Apr 2025 19:07:39 +0200 Subject: finish logs page --- internal/logging/message.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'internal/logging/message.go') 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 { -- cgit v1.2.3