Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingValue = errors.New("(MISSING)")
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Log(keyvals ...interface{}) error
}
func NewJSONLogger ¶
NewJSONLogger returns a Logger that encodes keyvals to the Writer as a single JSON object. Each log event produces no more than one call to w.Write. The passed Writer must be safe for concurrent use by multiple goroutines if the returned Logger will be used concurrently.
func NewNopLogger ¶
func NewNopLogger() Logger
NewNopLogger returns a logger that doesn't do anything.
Click to show internal directories.
Click to hide internal directories.