logger

package
v0.0.0-...-afddf54 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLevel

func ConvertLevel(lvl uint8) zapcore.Level

func ErrorWithStack

func ErrorWithStack(ctx context.Context, err error, msg string, kvs ...interface{})

ErrorWithStack shows error log along with its stacktrace.

func FromContext

func FromContext(ctx context.Context) *zap.SugaredLogger

func NewLogger

func NewLogger() *zap.SugaredLogger

func SetDefault

func SetDefault()

func Setup

func Setup(isDevel bool, lvl uint8, opts ...zap.Option)

func WithLogger

func WithLogger(parent context.Context, logger *zap.SugaredLogger) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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