kubernetes/vendor/go.uber.org/zap/zapcore/level.go

var errUnmarshalNilLevel

type Level

const DebugLevel

const InfoLevel

const WarnLevel

const ErrorLevel

const DPanicLevel

const PanicLevel

const FatalLevel

const _minLevel

const _maxLevel

const InvalidLevel

// ParseLevel parses a level based on the lower-case or all-caps ASCII
// representation of the log level. If the provided ASCII representation is
// invalid an error is returned.
//
// This is particularly useful when dealing with text input to configure log
// levels.
func ParseLevel(text string) (Level, error) {}

type leveledEnabler

// LevelOf reports the minimum enabled log level for the given LevelEnabler
// from Zap's supported log levels, or [InvalidLevel] if none of them are
// enabled.
//
// A LevelEnabler may implement a 'Level() Level' method to override the
// behavior of this function.
//
//	func (c *core) Level() Level {
//		return c.currentLevel
//	}
//
// It is recommended that [Core] implementations that wrap other cores use
// LevelOf to retrieve the level of the wrapped core. For example,
//
//	func (c *coreWrapper) Level() Level {
//		return zapcore.LevelOf(c.wrappedCore)
//	}
func LevelOf(enab LevelEnabler) Level {}

// String returns a lower-case ASCII representation of the log level.
func (l Level) String() string {}

// CapitalString returns an all-caps ASCII representation of the log level.
func (l Level) CapitalString() string {}

// MarshalText marshals the Level to text. Note that the text representation
// drops the -Level suffix (see example).
func (l Level) MarshalText() ([]byte, error) {}

// UnmarshalText unmarshals text to a level. Like MarshalText, UnmarshalText
// expects the text representation of a Level to drop the -Level suffix (see
// example).
//
// In particular, this makes it easy to configure logging levels using YAML,
// TOML, or JSON files.
func (l *Level) UnmarshalText(text []byte) error {}

func (l *Level) unmarshalText(text []byte) bool {}

// Set sets the level for the flag.Value interface.
func (l *Level) Set(s string) error {}

// Get gets the level for the flag.Getter interface.
func (l *Level) Get() interface{}

// Enabled returns true if the given level is at or above this level.
func (l Level) Enabled(lvl Level) bool {}

type LevelEnabler