log

package
v0.0.0-...-a88cfdc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirExisted

func EnsureDirExisted(paths ...string)

func InitLogger

func InitLogger(config *config.AppConfig) (logger *zap.Logger, err error)

func SetLoggerToContext

func SetLoggerToContext(ctx context.Context, logger *zap.Logger) context.Context

func WithCtx

func WithCtx(ctx context.Context) *zap.Logger

Types

type SetLoggerToContextKey

type SetLoggerToContextKey string

Jump to

Keyboard shortcuts

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