#1 Zerolog
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
Health score 96/100, confidence 100/100.
| Latest version | v1.9.4 |
| Imported by | 240.0K packages |
| Stars | 25.7K |
| Forks | 2.3K |
| Last activity | 22 days ago |
| Latest release | v1.9.4 (4 months ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| BufferPool | Type | type BufferPool interface{ ... } |
| BufferPool.Get | Method | Get func() *bytes.Buffer |
| BufferPool.Put | Method | Put func(*bytes.Buffer) |
| Entry | Type | type Entry struct{ ... } |
| Entry.Buffer | Field | Buffer *bytes.Buffer |
| Entry.Bytes | Method | func (entry *Entry) Bytes() ([]byte, error) |
| Entry.Caller | Field | Caller *runtime.Frame |
| Entry.Context | Field | Context context.Context |
| Entry.Data | Field | Data Fields |
| Entry.Debug | Method | func (entry *Entry) Debug(args ...interface{}) |
| Entry.Debugf | Method | func (entry *Entry) Debugf(format string, args ...interface{}) |
| Entry.Debugln | Method | func (entry *Entry) Debugln(args ...interface{}) |
Package zerolog provides a lightweight logging library dedicated to JSON logging.
Package zap provides fast, structured, leveled logging.
Fastest structured logging
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
🔥 Error handling library with context, assertion, stack trace and source fragments