#1 Zap
Package zap provides fast, structured, leveled logging.
🔥 Error handling library with context, assertion, stack trace and source fragments
Health score 74/100, confidence 75/100.
| Latest version | v1.22.0 |
| Imported by | 332 packages |
| Stars | 0 |
| Forks | 0 |
| Last activity | 1 day ago |
| Latest release | Unknown |
| License | Unknown |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| OopsError | Type | type OopsError struct{} |
| AsOops | Function | func AsOops(err error) (OopsError, bool) |
| OopsError.Code | Method | func (o OopsError) Code() any |
| OopsError.Context | Method | func (o OopsError) Context() map[string]any |
| OopsError.Domain | Method | func (o OopsError) Domain() string |
| OopsError.Duration | Method | func (o OopsError) Duration() time.Duration |
| OopsError.Error | Method | func (o OopsError) Error() string |
| OopsError.Format | Method | func (o OopsError) Format(s fmt.State, verb rune) |
| OopsError.HasTag | Method | func (o OopsError) HasTag(tag string) bool |
| OopsError.Hint | Method | func (o OopsError) Hint() string |
| OopsError.Is | Method | func (o OopsError) Is(err error) bool |
| OopsError.Layers | Method | func (o OopsError) Layers() []*OopsErrorLayer |
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.