#1 Logrus
Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Health score 73/100, confidence 80/100.
| Latest version | v1.8.0 |
| Imported by | 237 packages |
| Stars | 0 |
| Forks | 0 |
| Last activity | 2 months ago |
| Latest release | Unknown |
| License | Unknown |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| EnabledInlineMiddleware | Type | type EnabledInlineMiddleware struct{} |
| EnabledInlineMiddleware.Enabled | Method | func (h *EnabledInlineMiddleware) Enabled(ctx context.Context, level slog.Level) bool |
| EnabledInlineMiddleware.Handle | Method | func (h *EnabledInlineMiddleware) Handle(ctx context.Context, record slog.Record) error |
| EnabledInlineMiddleware.WithAttrs | Method | func (h *EnabledInlineMiddleware) WithAttrs(attrs []slog.Attr) slog.Handler |
| EnabledInlineMiddleware.WithGroup | Method | func (h *EnabledInlineMiddleware) WithGroup(name string) slog.Handler |
| FailoverHandler | Type | type FailoverHandler struct{} |
| FailoverHandler.Enabled | Method | func (h *FailoverHandler) Enabled(ctx context.Context, l slog.Level) bool |
| FailoverHandler.Handle | Method | func (h *FailoverHandler) Handle(ctx context.Context, r slog.Record) error |
| FailoverHandler.WithAttrs | Method | func (h *FailoverHandler) WithAttrs(attrs []slog.Attr) slog.Handler |
| FailoverHandler.WithGroup | Method | func (h *FailoverHandler) WithGroup(name string) slog.Handler |
| FanoutHandler | Type | type FanoutHandler struct{} |
| FanoutHandler.Enabled | Method | func (h *FanoutHandler) Enabled(ctx context.Context, l slog.Level) bool |
Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package zap provides fast, structured, leveled logging.
Fastest structured logging
🔥 Error handling library with context, assertion, stack trace and source fragments