log

package
v0.0.0-...-af1d8da Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalLogger *zap.Logger
	Level        zap.AtomicLevel = zap.NewAtomicLevel()
)

global sys var

View Source
var (
	Info  func(msg string, fields ...zap.Field)
	Debug func(msg string, fields ...zap.Field)
	Error func(msg string, fields ...zap.Field)
	Warn  func(msg string, fields ...zap.Field)
	Fatal func(msg string, fields ...zap.Field)

	// work like stand pkg sys.Printf
	Infof  func(template string, args ...interface{})
	Warnf  func(template string, args ...interface{})
	Debugf func(template string, args ...interface{})
	Errorf func(template string, args ...interface{})
	Fataf  func(template string, args ...interface{})
)
View Source
var (
	// after the app close, we should sync the message to io.Writer
	Sync func() error
)

Functions

func ConfigLog

func ConfigLog(cnf *config.LogConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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