Documentation ¶
Overview ¶
Package logger - configurable logging middleware
Index ¶
- func NewLogTextLogger(w io.Writer) kitlog.Logger
- type Logger
- func (l *Logger) Debug(msg string, vals ...interface{})
- func (l *Logger) Error(msg string, vals ...interface{})
- func (l *Logger) Info(msg string, vals ...interface{})
- func (l *Logger) Log(kvals ...interface{}) error
- func (l *Logger) Request(reqID, method, path string)
- func (l *Logger) Response(reqID, method, path string, statusCode int, statusText string, ...)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements go-kit logger interface Adding additional functionality
func NewLogger ¶
NewLogger initializes a new Logger instance Supported log types are: text, json, none
Click to show internal directories.
Click to hide internal directories.