zen/core/zlog/notification.go
2024-08-27 15:22:42 +07:00

19 lines
289 B
Go

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{}