utils

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ModeRecordAll = "record_all"
	ModeSampled   = "sampled"
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(mode, logLevel, encoding string, showFullCaller bool, callerSkip int, enableStacktrace bool) *zap.Logger

GetLogger returns a logger

func Load

func Load(ctx context.Context, loggerCfg cfgTY.LoggerConfig, component string) context.Context

Load logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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