#1 phuslu/log
Fastest structured logging
Package zap provides fast, structured, leveled logging.
Health score 97/100, confidence 100/100.
| Latest version | v1.28.0 |
| Imported by | 119.7K packages |
| Stars | 24.5K |
| Forks | 1.5K |
| Last activity | 1 months ago |
| Latest release | v1.28.0 (1 months ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| AtomicLevel | Type | type AtomicLevel struct{} |
| AtomicLevel.Enabled | Method | func (lvl AtomicLevel) Enabled(l zapcore.Level) bool |
| AtomicLevel.Level | Method | func (lvl AtomicLevel) Level() zapcore.Level |
| AtomicLevel.MarshalText | Method | func (lvl AtomicLevel) MarshalText() (text []byte, err error) |
| AtomicLevel.ServeHTTP | Method | func (lvl AtomicLevel) ServeHTTP(w http.ResponseWriter, r *http.Request) |
| AtomicLevel.SetLevel | Method | func (lvl AtomicLevel) SetLevel(l zapcore.Level) |
| AtomicLevel.String | Method | func (lvl AtomicLevel) String() string |
| AtomicLevel.UnmarshalText | Method | func (lvl *AtomicLevel) UnmarshalText(text []byte) error |
| NewAtomicLevel | Function | func NewAtomicLevel() AtomicLevel |
| NewAtomicLevelAt | Function | func NewAtomicLevelAt(l zapcore.Level) AtomicLevel |
| ParseAtomicLevel | Function | func ParseAtomicLevel(text string) (AtomicLevel, error) |
| Config | Type | type Config struct{ ... } |
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