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 NewCLILogger ¶
NewCLILogger creates a standard logger for Kolide CLI tools. The logger will output leveled logs with a "severity" field set to either "info" or "debug". The acceptable level can be swapped by sending SIGUSR2 to the process.
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.