logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKratosLogger *kratosZapLogger

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 GetLoggerLevel

func GetLoggerLevel(lvl string) zapcore.Level

func Info

func Info(args ...any)

--------------------------------------------------

func Infof

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

func InitLogger

func InitLogger(isLogConsole bool,
	lv zapcore.Level, folder string)

func InitServiceLogger

func InitServiceLogger(isLogConsole bool)

func Log

func Log(lv zapcore.Level, callerLevel int, prefix []any, args ...any)

-------------------------------------------------- 可以指定打印出调用者的信息,0表示打印当前函数位置,1表示上一级调用位置

func LogErr

func LogErr(err error) error

func Logf

func Logf(lv zapcore.Level, callerLevel int, prefix []any,
	template string, args ...any)

可以指定打印出调用者的信息,0表示打印当前函数位置,1表示上一级调用位置

func NewTimeLogger

func NewTimeLogger(name string) *timeLogger

func Warn

func Warn(args ...any)

--------------------------------------------------

func Warnf

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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