zlog

package module
v0.0.0-...-868584e Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewZapLogger

func MustNewZapLogger(opts ...LogOptFunc) *zap.Logger

MustNewZapLogger create zap logger, if prod is empty or prod[0] is false, use debug logger. else return prod logger.

func ReplaceGlobalToShowLogZapL

func ReplaceGlobalToShowLogZapL(logger *zap.Logger)

Types

type LogOptFunc

type LogOptFunc func(o *LogOpts)

func WithDevEnv

func WithDevEnv(b bool) LogOptFunc

type LogOpts

type LogOpts struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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