utilzap

package
v0.9.4-beta-4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLevelToZap

func ConvertLevelToZap(l slog.Level) zapcore.Level

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL