log

package
v0.0.0-...-602fb03 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02 15:04:05.999"

Variables

View Source
var (
	NewContext           = logr.NewContext
	FromContextOrDiscard = logr.FromContextOrDiscard
)
View Source
var (
	Info  = Logger.Info
	Error = Logger.Error
	V     = Logger.V
	Warn  = Logger.V(1)
	Debug = Logger.V(2)
	Trace = Logger.V(3)
)
View Source
var AtomicLevel = zap.NewAtomicLevelAt(zap.InfoLevel) // 通过更改 level 可一更改runtime logger的level
View Source
var _, Logger = MustNewLogger()

Functions

func MustNewLogger

func MustNewLogger() (*zap.Logger, logr.Logger)

Types

This section is empty.

Jump to

Keyboard shortcuts

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