Documentation ¶
Overview ¶
Package internal and its subpackages hold types and functionality that are not part of Zap's public API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
Directories ¶
Path | Synopsis |
---|---|
Package bufferpool houses zap's shared internal buffer pool.
|
Package bufferpool houses zap's shared internal buffer pool. |
Package color adds coloring functionality for TTY output.
|
Package color adds coloring functionality for TTY output. |
Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1).
|
Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1). |
Package pool provides internal pool utilities.
|
Package pool provides internal pool utilities. |
readme generates Zap's README from a template.
|
readme generates Zap's README from a template. |
Package stacktrace provides support for gathering stack traces efficiently.
|
Package stacktrace provides support for gathering stack traces efficiently. |
Package ztest provides low-level helpers for testing log output.
|
Package ztest provides low-level helpers for testing log output. |
Click to show internal directories.
Click to hide internal directories.