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

import (
	"context"

	"github.com/kujtimiihoxha/termai/internal/pubsub"
)

type Interface interface {
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
	Subscribe(ctx context.Context) <-chan pubsub.Event[Message]

	List() []Message
}