Documentation ¶
Index ¶
- func EncoderConfigs() []zapf.EncoderConfigOption
- func ISO8601TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- type Logger
- func (l *Logger) Enabled() bool
- func (l *Logger) Error(err error, msg string, keysAndValues ...interface{})
- func (l *Logger) Info(msg string, keysAndValues ...interface{})
- func (l *Logger) V(level int) logr.Logger
- func (l *Logger) WithName(name string) logr.Logger
- func (l *Logger) WithValues(keysAndValues ...interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncoderConfigs ¶
func EncoderConfigs() []zapf.EncoderConfigOption
EncoderConfigs returns the zapf.EncoderConfigOption.
func ISO8601TimeEncoder ¶
func ISO8601TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
ISO8601TimeEncoder serializes a time.Time to an ISO8601-formatted string with millisecond precision. This is same as t.Format("2006-01-02T15:04:05.000Z").
It optimized at byte slice level, faster than time.Format.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logr.Logger embedded logger.
func (*Logger) WithValues ¶
WithValues implements logr.Logger.WithValues.
Click to show internal directories.
Click to hide internal directories.