Documentation ¶
Overview ¶
Package svclog provides logging facilities for standard services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(cfg Config) logrus.FieldLogger
NewLogger returns a new logger that includes app and deploy key/value pairs in each log line.
func NewSampleLogger ¶ added in v0.0.19
func NewSampleLogger(parentLogger logrus.FieldLogger, logsBurstLimit int, logBurstWindow time.Duration) logrus.FieldLogger
NewSampleLogger creates a rate limited logger that samples logs. The parameter logsBurstLimit defines how many logs are allowed per logBurstWindow duration. The returned logger derives from the parentLogger, but without inheriting any Hooks. All log entries derived from SampleLogger will contain 'sampled=true' field.
func SaramaLogger ¶
func SaramaLogger(logger logrus.FieldLogger) logrus.FieldLogger
SaramaLogger takes FieldLogger and returns a saramaLogger.
Types ¶
Click to show internal directories.
Click to hide internal directories.