Documentation ¶
Index ¶
- Variables
- func Error(err error, msg string, keysAndValues ...interface{})
- func Info(msg string, keysAndValues ...interface{})
- func NewZapr(opts ...OpZaprConfig) logr.Logger
- func NewZerologr(opts ...OpZerologConfig) logr.Logger
- func V(level int) logr.Logger
- func WithName(name string) logr.Logger
- func WithValues(keysAndValues ...interface{}) logr.Logger
- type OpZaprConfig
- type OpZerologConfig
- type ZaprConfig
- type ZerologConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger func() logr.Logger = func() logr.Logger { return NewZapr( func(config *ZaprConfig) { config.Verbose = 0 }, func(config *ZaprConfig) { config.DisableCaller = true }, func(config *ZaprConfig) { config.DisableStacktrace = true }, ) }
Functions ¶
func NewZapr ¶
func NewZapr(opts ...OpZaprConfig) logr.Logger
func NewZerologr ¶
func NewZerologr(opts ...OpZerologConfig) logr.Logger
func WithValues ¶
Types ¶
type OpZaprConfig ¶
type OpZaprConfig func(cfg *ZaprConfig)
type OpZerologConfig ¶
type OpZerologConfig func(cfg *ZerologConfig)
type ZaprConfig ¶
Click to show internal directories.
Click to hide internal directories.