Documentation ¶
Index ¶
- type NopLogger
- type StringLogger
- func (l *StringLogger) MatchString(pattern string) bool
- func (l *StringLogger) Print(msg string, fields ...field.M)
- func (l *StringLogger) PrintTo(w io.Writer, msg string, fields ...field.M)
- func (l *StringLogger) WithContext(ctx context.Context) log.Logger
- func (l *StringLogger) WithError(err error) log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NopLogger ¶
type NopLogger struct{}
NopLogger is a logger that does nothing. TODO: Move to log package
func (NopLogger) WithContext ¶
WithContext does nothing.
type StringLogger ¶
type StringLogger []string
StringLogger is a logger that stores log messages in a slice of strings.
func (*StringLogger) MatchString ¶
func (l *StringLogger) MatchString(pattern string) bool
func (*StringLogger) WithContext ¶
func (l *StringLogger) WithContext(ctx context.Context) log.Logger
Click to show internal directories.
Click to hide internal directories.