mylog

package
v0.0.0-...-99f8488 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 16 Imported by: 111

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

Debug level debug

func Debugf

func Debugf(msg string, a ...interface{})

Debugf level debug

func Error

func Error(a ...interface{})

Error 记录错误信息

func ErrorString

func ErrorString(a ...interface{})

ErrorString 打印错误信息

func Errorf

func Errorf(msg string, a ...interface{})

Errorf 记录错误信息

func Fatal

func Fatal(a ...interface{})

Fatal level fatal

func Fatalf

func Fatalf(msg string, a ...interface{})

Fatalf level fatal

func GetDefaultStd

func GetDefaultStd() *stdLog

GetDefaultStd get default std logger

func GetDefaultZap

func GetDefaultZap() *zapLog

GetDefaultZap 获取默认zap日志库

func GetLog

func GetLog() myLog

func Info

func Info(a ...interface{})

Info info level debug

func Infof

func Infof(msg string, a ...interface{})

Infof info level debug

func JSON

func JSON(a ...interface{})

JSON json info

func Panic

func Panic(a ...interface{})

Panic return trace of error

func SaveError

func SaveError(errstring, flag string)

SaveError return trace of error

func SetLog

func SetLog(log myLog)

SetLog set log

func TraceError

func TraceError(err error) error

TraceError return trace of error

Types

This section is empty.

Jump to

Keyboard shortcuts

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