logging.go

 1package logging
 2
 3import (
 4	"context"
 5
 6	"github.com/kujtimiihoxha/termai/internal/pubsub"
 7)
 8
 9type Interface interface {
10	Debug(msg string, args ...any)
11	Info(msg string, args ...any)
12	Warn(msg string, args ...any)
13	Error(msg string, args ...any)
14	Subscribe(ctx context.Context) <-chan pubsub.Event[Message]
15
16	List() []Message
17}