package internal
import "go.uber.org/zap/internal"
Package internal and its subpackages hold types and functionality that are not part of Zap's public API.
Index ¶
Types ¶
type LeveledEnabler ¶
type LeveledEnabler interface {
zapcore.LevelEnabler
Level() zapcore.Level
}
LeveledEnabler is an interface satisfied by LevelEnablers that are able to report their own level.
This interface is defined to use more conveniently in tests and non-zapcore packages. This cannot be imported from zapcore because of the cyclic dependency.
Source Files ¶
level_enabler.go
Directories ¶
| Path | Synopsis |
|---|---|
| internal/bufferpool | Package bufferpool houses zap's shared internal buffer pool. |
| internal/color | Package color adds coloring functionality for TTY output. |
| internal/exit | Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1). |
| internal/pool | Package pool provides internal pool utilities. |
| internal/readme | readme generates Zap's README from a template. |
| internal/stacktrace | Package stacktrace provides support for gathering stack traces efficiently. |
| internal/ztest | Package ztest provides low-level helpers for testing log output. |
- Version
- v1.28.0 (latest)
- Published
- Apr 28, 2026
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 weeks ago –
Tools for package owners.