logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

func Debugf

func Debugf(template string, args ...any)

func Error

func Error(args ...any)

func Errorf

func Errorf(template string, args ...any)

func Fatal

func Fatal(args ...any)

func Fatalf

func Fatalf(template string, args ...any)

func Info

func Info(args ...any)

func Infof

func Infof(template string, args ...any)

func InitLogger

func InitLogger()

InitLogger InitDefaultLogger default logger with name, should be init call it

func InitPersistenceLogger

func InitPersistenceLogger(filename string)

func NewRotateLogger

func NewRotateLogger(filename string) io.Writer

func NewSugarLogger

func NewSugarLogger(option *InitOption) *zap.SugaredLogger

func Obj

func Obj() *zap.SugaredLogger

func Panic

func Panic(args ...any)

func Panicf

func Panicf(template string, args ...any)

func Sync

func Sync()

func TimeFormatFunc

func TimeFormatFunc(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func Warn

func Warn(args ...any)

func Warnf

func Warnf(template string, args ...any)

Types

type InitOption

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

Jump to

Keyboard shortcuts

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