Documentation ¶
Index ¶
Constants ¶
View Source
const (
DebugLevel = int(zapcore.DebugLevel)
)
Variables ¶
View Source
var Options = &zap.Options{ Development: true, StacktraceLevel: zapcore.DPanicLevel, TimeEncoder: zapcore.RFC3339NanoTimeEncoder, Level: zzap.NewAtomicLevelAt(zapcore.InfoLevel), EncoderConfigOptions: []zap.EncoderConfigOption{func(ec *zapcore.EncoderConfig) { ec.CallerKey = "caller" }}, ZapOpts: []zzap.Option{zzap.AddCaller()}, }
Options stores controller-runtime (zap) log config
Functions ¶
func InitLog ¶
func InitLog()
InitLog initializes controller-runtime log (zap log) this should be called once Options have been initialized either by parsing flags or directly modifying Options.
func SetLogLevel ¶
SetLogLevel sets current logging level to the provided lvl
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.