Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestLogger ¶
func NewTestLogger(t *testing.T, level zapcore.LevelEnabler) (*zap.Logger, *observer.ObservedLogs)
NewTestLogger wraps a zaptest logger to tee output and provide ObservedLogs to validate in tests.
func ValidateOutput ¶
func ValidateOutput(t *testing.T, logOutput *observer.ObservedLogs, toValidate []LogOutput)
ValidateOutput takes the provided ObservedLogs and validates all the provided LogOutput entries.
Types ¶
Click to show internal directories.
Click to hide internal directories.