Documentation
¶
Index ¶
- type LogEntry
- type TestLogger
- func (tl *TestLogger) Debug(msg string, fields ...log.Field)
- func (tl *TestLogger) Error(msg string, fields ...log.Field)
- func (tl *TestLogger) Fatal(msg string, fields ...log.Field)
- func (tl *TestLogger) Info(msg string, fields ...log.Field)
- func (tl *TestLogger) Intercept(hook func(entry LogEntry))
- func (t *TestLogger) Silence()
- func (tl *TestLogger) Trace(msg string, fields ...log.Field)
- func (tl *TestLogger) Verbo(msg string, fields ...log.Field)
- func (tl *TestLogger) Warn(msg string, fields ...log.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestLogger ¶
TestLogger wraps log.Logger with test utilities
func MakeLogger ¶
func MakeLogger(t *testing.T, node ...int) *TestLogger
MakeLogger creates a TestLogger for testing
func (*TestLogger) Debug ¶ added in v0.1.5
func (tl *TestLogger) Debug(msg string, fields ...log.Field)
func (*TestLogger) Error ¶ added in v0.1.5
func (tl *TestLogger) Error(msg string, fields ...log.Field)
func (*TestLogger) Fatal ¶ added in v0.1.5
func (tl *TestLogger) Fatal(msg string, fields ...log.Field)
func (*TestLogger) Info ¶ added in v0.1.5
func (tl *TestLogger) Info(msg string, fields ...log.Field)
func (*TestLogger) Intercept ¶
func (tl *TestLogger) Intercept(hook func(entry LogEntry))
Intercept sets a hook function that receives all log entries
Click to show internal directories.
Click to hide internal directories.