Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogContains ¶ added in v0.38.0
LogContains is a helper function that checks the provided list of log entries for a message matching the provided level and contents.
Types ¶
type SimpleLogrusHook ¶ added in v0.24.0
type SimpleLogrusHook struct { HookedLevels []logrus.Level // contains filtered or unexported fields }
SimpleLogrusHook implements the logrus.Hook interface and could be used to check if log messages were outputted
func (*SimpleLogrusHook) Drain ¶ added in v0.24.0
func (smh *SimpleLogrusHook) Drain() []logrus.Entry
Drain returns the currently stored messages and deletes them from the cache
func (*SimpleLogrusHook) Fire ¶ added in v0.24.0
func (smh *SimpleLogrusHook) Fire(e *logrus.Entry) error
Fire saves whatever message the logrus library passed in the cache
func (*SimpleLogrusHook) Levels ¶ added in v0.24.0
func (smh *SimpleLogrusHook) Levels() []logrus.Level
Levels just returns whatever was stored in the HookedLevels slice
func (*SimpleLogrusHook) Lines ¶ added in v0.43.0
func (smh *SimpleLogrusHook) Lines() []string
Lines returns the logged lines.
Directories ¶
Path | Synopsis |
---|---|
Package httpmultibin is indended only for use in tests, do not import in production code!
|
Package httpmultibin is indended only for use in tests, do not import in production code! |
Click to show internal directories.
Click to hide internal directories.