Documentation ¶
Overview ¶
Package logutil has utilities for working with the Go Kit log package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) endpoint.Middleware
LoggingMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
func NewServerLogger ¶
NewServerLogger creates a standard logger for Kolide services. The logger will output JSON structured logs with a "severity" field set to either "info" or "debug". The acceptable level can be swapped by sending SIGUSR2 to the process.
func SetLevelKey ¶
SetLevelKey changes the "level" key in a Go Kit logger, allowing the user to set it to something else. Useful for deploying services to GCP, as stackdriver expects a "severity" key instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.