Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LevelFromEnvironment ¶
LevelFromEnvironment returns a zap level, based on the environment variable TEST_LOGGER_LEVEL.
func NewContext ¶
NewContext returns a context with test logger configured. This is interim logger, that should be replaced by testing.T bound test logger using environment.WithTestLogger func.
func WithTestLogger ¶
func WithTestLogger(ctx context.Context, t zaptest.TestingT, opts ...zaptest.LoggerOption) context.Context
WithTestLogger returns a context with test logger configured.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.