#1 slog-multi
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Redact sensitive information from slog-based logs using a configurable pipeline.
Health score 51/100, confidence 80/100.
| Latest version | v1.0.0 |
| Imported by | 0 packages |
| Stars | 0 |
| Forks | 0 |
| Last activity | 1 years ago |
| Latest release | Unknown |
| License | Unknown |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| RedactionFunc | Type | type RedactionFunc func(ctx context.Context, r slog.Record) slog.Record |
| RedactionHandler | Type | type RedactionHandler struct{} |
| NewRedactionHandler | Function | func NewRedactionHandler(handler slog.Handler, pipeline *RedactionPipeline) *RedactionHandler |
| RedactionHandler.Enabled | Method | func (h *RedactionHandler) Enabled(ctx context.Context, level slog.Level) bool |
| RedactionHandler.Handle | Method | func (h *RedactionHandler) Handle(ctx context.Context, r slog.Record) error |
| RedactionHandler.WithAttrs | Method | func (h *RedactionHandler) WithAttrs(attrs []slog.Attr) slog.Handler |
| RedactionHandler.WithGroup | Method | func (h *RedactionHandler) WithGroup(name string) slog.Handler |
| RedactionPipeline | Type | type RedactionPipeline struct{} |
| NewRedactionPipeline | Function | func NewRedactionPipeline() *RedactionPipeline |
| RedactionPipeline.AddRedactField | Method | func (p *RedactionPipeline) AddRedactField(fieldName string) |
| RedactionPipeline.Process | Method | func (p *RedactionPipeline) Process(ctx context.Context, r slog.Record) slog.Record |
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package zap provides fast, structured, leveled logging.
Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.
Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
Fastest structured logging
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package zap provides fast, structured, leveled logging.
Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.
Package logrus is a structured logger for Go, completely API compatible with the standard library logger.