Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLevelToZap ¶
ConvertLevelToZap maps slog Levels to zap Levels.
Note: copied from https://github.com/uber-go/zap/blob/d27427d23f81dba1f048d6034d5f286572049e1e/exp/zapslog/handler.go
Note: there is some room between slog levels while zap levels are continuous, so we can't 1:1 map them. See also https://go.googlesource.com/proposal/+/master/design/56345-structured-logging.md?pli=1#levels
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.