Versions in this module Expand all Collapse all v1 v1.9.4 Dec 19, 2023 Changes in this version + func Debugw(msg string, keysAndValues ...interface{}) + func Errorw(msg string, err error, keysAndValues ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func InitFromConfig(conf *Config, name string) + func NewFieldSampler(core zapcore.Core, config FieldSamplerConfig) zapcore.Core + func ParseZapLevel(level string) zapcore.Level + func Proto(val proto.Message) zapcore.ObjectMarshaler + func SetLogger(l Logger, name string) + func Warnw(msg string, err error, keysAndValues ...interface{}) + type AtomicFieldSampleRate uint64 + func NewAtomicFieldSampleRate(rate float64) *AtomicFieldSampleRate + func (r *AtomicFieldSampleRate) SetRate(rate float64) + func (r *AtomicFieldSampleRate) Threshold() uint64 + type Config struct + ComponentLevels map[string]string + ItemSampleInitial int + ItemSampleInterval int + ItemSampleSeconds int + JSON bool + Level string + Sample bool + SampleInitial int + SampleInterval int + func (c *Config) AddUpdateObserver(cb ConfigObserver) + func (c *Config) Update(o *Config) error + type ConfigObserver func(*Config) error + type FieldSampleRate interface + Threshold func() uint64 + type FieldSamplerAction int + const AnnotateSampledLog + const OmitSampledLog + type FieldSamplerConfig struct + Action FieldSamplerAction + AnnotationFieldName string + FieldName string + Rate FieldSampleRate + type LogRLogger logr.Logger + func (l LogRLogger) Debugw(msg string, keysAndValues ...interface{}) + func (l LogRLogger) Errorw(msg string, err error, keysAndValues ...interface{}) + func (l LogRLogger) Infow(msg string, keysAndValues ...interface{}) + func (l LogRLogger) Warnw(msg string, err error, keysAndValues ...interface{}) + func (l LogRLogger) WithCallDepth(depth int) Logger + func (l LogRLogger) WithComponent(component string) Logger + func (l LogRLogger) WithItemSampler() Logger + func (l LogRLogger) WithName(name string) Logger + func (l LogRLogger) WithValues(keysAndValues ...interface{}) Logger + func (l LogRLogger) WithoutSampler() Logger + type Logger interface + Debugw func(msg string, keysAndValues ...interface{}) + Errorw func(msg string, err error, keysAndValues ...interface{}) + Infow func(msg string, keysAndValues ...interface{}) + Warnw func(msg string, err error, keysAndValues ...interface{}) + WithCallDepth func(depth int) Logger + WithComponent func(component string) Logger + WithItemSampler func() Logger + WithName func(name string) Logger + WithValues func(keysAndValues ...interface{}) Logger + WithoutSampler func() Logger + func GetLogger() Logger + type ZapLogger struct + SampleDuration time.Duration + SampleInitial int + SampleInterval int + func NewZapLogger(conf *Config) (*ZapLogger, error) + func (l *ZapLogger) Debugw(msg string, keysAndValues ...interface{}) + func (l *ZapLogger) Errorw(msg string, err error, keysAndValues ...interface{}) + func (l *ZapLogger) Infow(msg string, keysAndValues ...interface{}) + func (l *ZapLogger) ToZap() *zap.SugaredLogger + func (l *ZapLogger) Warnw(msg string, err error, keysAndValues ...interface{}) + func (l *ZapLogger) WithCallDepth(depth int) Logger + func (l *ZapLogger) WithComponent(component string) Logger + func (l *ZapLogger) WithFieldSampler(config FieldSamplerConfig) *ZapLogger + func (l *ZapLogger) WithItemSampler() Logger + func (l *ZapLogger) WithName(name string) Logger + func (l *ZapLogger) WithValues(keysAndValues ...interface{}) Logger + func (l *ZapLogger) WithoutSampler() Logger