zen/core/zlog/notification.go

19 lines
289 B
Go
Raw Normal View History

2024-08-27 15:22:42 +07:00
package zlog
import (
"context"
"log/slog"
"gitlab.bareksa.com/backend/zen/core/zoptions"
)
type Notifier interface {
Notify(options ...zoptions.NotifyOption)
}
type NotificationHandler interface {
NotifyLog(ctx context.Context, record slog.Record)
}
type notifyHandler struct{}