#1 slog-multi
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
Package log provides a structured logger.
Health score 76/100, confidence 95/100.
| Latest version | v0.2.1 |
| Imported by | 4.5K packages |
| Stars | 193 |
| Forks | 19 |
| Last activity | 1 years ago |
| Latest release | v0.2.1 (4 years ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Logger | Type | type Logger interface{ ... } |
| Logger.Log | Method | Log func(keyvals ...interface{}) error |
| NewJSONLogger | Function | func NewJSONLogger(w io.Writer) Logger |
| NewLogfmtLogger | Function | func NewLogfmtLogger(w io.Writer) Logger |
| NewNopLogger | Function | func NewNopLogger() Logger |
| NewSyncLogger | Function | func NewSyncLogger(logger Logger) Logger |
| With | Function | func With(logger Logger, keyvals ...interface{}) Logger |
| WithPrefix | Function | func WithPrefix(logger Logger, keyvals ...interface{}) Logger |
| WithSuffix | Function | func WithSuffix(logger Logger, keyvals ...interface{}) Logger |
| LoggerFunc | Type | type LoggerFunc func(...interface{}) error |
| LoggerFunc.Log | Method | func (f LoggerFunc) Log(keyvals ...interface{}) error |
| StdlibAdapter | Type | type StdlibAdapter struct{ ... } |
🚨 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.