Documentation
¶
Overview ¶
Package logger defines a common logger interface used by the library various components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
type Field struct {
Key string
Value interface{}
}
Field represents a structured field to be added to a Log entry.
type Logger ¶
type Logger interface {
Debug(msg string, fields ...Field)
Info(msg string, fields ...Field)
Error(msg string, fields ...Field)
}
Logger is a structured logger capable of printing information about the execution of a component at various levels.
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test is a logger.Logger implementation using testing.T instance.
Click to show internal directories.
Click to hide internal directories.