Documentation ¶
Overview ¶
Package logger defines the logger used by kivikd.
Index ¶
Constants ¶
View Source
const ( FieldUsername = "username" FieldTimestamp = "timestamp" FieldElapsedTime = "elapsed" FieldResponseSize = "size" )
Pre-defined log fields
Variables ¶
View Source
var DefaultLogger = New(os.Stderr)
DefaultLogger logs to stderr.
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields map[string]interface{}
Fields is simple wrapper around logging fields.
func (Fields) GetDuration ¶
GetDuration returns a value as a time.Duration
Click to show internal directories.
Click to hide internal directories.