Documentation
¶
Index ¶
- func Debugw(msg string, keysAndValues ...interface{})
- func Errorw(msg string, err error, keysAndValues ...interface{})
- func GetLogger() logr.Logger
- func Infow(msg string, keysAndValues ...interface{})
- func InitFromConfig(conf Config, name string)
- func ParseZapLevel(level string) zapcore.Level
- func SetLogger(l logr.Logger, name string)
- func Warnw(msg string, err error, keysAndValues ...interface{})
- type Config
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromConfig ¶
InitFromConfig initializes a Zap-based logger
func ParseZapLevel ¶
Types ¶
type Config ¶
type Config struct { JSON bool `yaml:"json"` Level string `yaml:"level"` Sample bool `yaml:"sample,omitempty"` // when sampling, the first N logs will be logged SampleInitial int `yaml:"sampleInitial,omitempty"` // when sampling, every Mth log will be logged SampleInterval int `yaml:"sampleInitial,omitempty"` }
type Logger ¶
func GetDefaultLogger ¶
func GetDefaultLogger() Logger
GetDefaultLogger returns the logger that was set but with LiveKit wrappers
Click to show internal directories.
Click to hide internal directories.