kubernetes: k8s.io/kubernetes/pkg/kubelet/util/logreduction Index | Files

package logreduction

import "k8s.io/kubernetes/pkg/kubelet/util/logreduction"

Index

Package Files

logreduction.go

type LogReduction Uses

type LogReduction struct {
    // contains filtered or unexported fields
}

LogReduction provides a filter for consecutive identical log messages; a message will be printed no more than once per interval. If a string of messages is interrupted by a different message, the interval timer will be reset.

func NewLogReduction Uses

func NewLogReduction(identicalErrorDelay time.Duration) *LogReduction

NewLogReduction returns an initialized LogReduction

func (*LogReduction) ClearID Uses

func (l *LogReduction) ClearID(parentID string)

ClearID clears out log reduction records pertaining to a particular parent (e. g. container ID)

func (*LogReduction) ShouldMessageBePrinted Uses

func (l *LogReduction) ShouldMessageBePrinted(message string, parentID string) bool

ShouldMessageBePrinted determines whether a message should be printed based on how long ago this particular message was last printed

Package logreduction imports 2 packages (graph) and is imported by 8 packages. Updated 2019-04-11. Refresh now. Tools for package owners.