summaryrefslogtreecommitdiffhomepage
path: root/internal/logging/logging.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-09 19:07:39 +0200
committerKujtim Hoxha <[email protected]>2025-04-09 19:07:39 +0200
commitd39d52d95d6aaab67fb3a17efb9ed62cc290e72f (patch)
tree940bad6f0c847ceb213e5fc684b6d87cbf9d6996 /internal/logging/logging.go
parent0d8d324ac6e640b95f4f2f62fd189399a959319a (diff)
downloadopencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.tar.gz
opencode-d39d52d95d6aaab67fb3a17efb9ed62cc290e72f.zip
finish logs page
Diffstat (limited to 'internal/logging/logging.go')
-rw-r--r--internal/logging/logging.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/logging/logging.go b/internal/logging/logging.go
index 14653d1bb..c23cfaff8 100644
--- a/internal/logging/logging.go
+++ b/internal/logging/logging.go
@@ -11,7 +11,13 @@ type Interface interface {
Info(msg string, args ...any)
Warn(msg string, args ...any)
Error(msg string, args ...any)
- Subscribe(ctx context.Context) <-chan pubsub.Event[Message]
+ Subscribe(ctx context.Context) <-chan pubsub.Event[LogMessage]
- List() []Message
+ PersistDebug(msg string, args ...any)
+ PersistInfo(msg string, args ...any)
+ PersistWarn(msg string, args ...any)
+ PersistError(msg string, args ...any)
+ List() []LogMessage
+
+ SetLevel(level string)
}