child*namespaceentries[]slog.Attrnamestring attrs materializes child namespace lazily so namespaces can keep collecting
fields until the entire object is finished.
Package-Level Functions (total 3, in which 1 is exported)
New creates a [Core] backed by the provided context and [slog.Handler].
convertLogLevel converts a [zapcore.Level] to an [slog.Level]. Unsupported
levels are mapped to [slog.LevelError]+i, where i is the number of levels
above [zapcore.ErrorLevel]. Unknown levels are mapped to [slog.LevelError]+4.
encodeFields delegates field encoding to zap itself via Field.AddTo and
captures the result as slog attributes.
Package-Level Constants (total 6, in which 4 are exported)
LevelDPanic is the log level for [zapcore.DPanicLevel] entries.
LevelFatal is the log level for [zapcore.FatalLevel] entries.
LevelInvalid is the log level for entries with invalid
[zapcore.Level] values.
LevelPanic is the log level for [zapcore.PanicLevel] entries.
loggerNameKey is the key used by the [Core] for the [zap.Entry]’s
LoggerName field.
stackKey is the key used by the [Core] for the [zap.Entry]’s
Stack field.
The pages are generated with Goldsv0.7.6. (GOOS=linux GOARCH=amd64)