#1 Zap
Package zap provides fast, structured, leveled logging.
Package log provides a structured logger.
Health score 55/100, confidence 75/100.
| Latest version | v0.2.1 |
| Imported by | 4.5K packages |
| Stars | 0 |
| Forks | 0 |
| Last activity | 4 years ago |
| Latest release | Unknown |
| License | Unknown |
| 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{ ... } |
Package zap provides fast, structured, leveled logging.
Fastest structured logging
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.
🔥 Error handling library with context, assertion, stack trace and source fragments
Package zap provides fast, structured, leveled logging.
Fastest structured logging
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.