logging.go 327 B

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