logger

package module
v0.0.0-...-dc42781 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_SIZE_CUT_TYPE = 0
	LOG_TIME_CUT_TYPE = 1
)

Variables

View Source
var RedisCli *redis.Client

Functions

func Caller

func Caller(l zapcore.Level) string

func Debug

func Debug(args ...interface{})

func DebugA

func DebugA(args ...interface{})

func DebugAf

func DebugAf(template string, args ...interface{})

func Debugf

func Debugf(template string, args ...interface{})

func Error

func Error(args ...interface{})

func ErrorA

func ErrorA(args ...interface{})

func ErrorAf

func ErrorAf(template string, args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func FatalA

func FatalA(args ...interface{})

func FatalAf

func FatalAf(template string, args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Flush

func Flush()

func GetProcName

func GetProcName() string

func Info

func Info(args ...interface{})

func InfoA

func InfoA(args ...interface{})

func InfoAf

func InfoAf(template string, args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func Init

func Init(logPath, fileName string) error

func PushLog2Chat

func PushLog2Chat(url, title, text string)

func ResetLogLevel

func ResetLogLevel(l zapcore.Level)

func SaveToRedis

func SaveToRedis(log ...string)

func ToString

func ToString(value interface{}) string

func Trace

func Trace(args ...interface{})

func Tracef

func Tracef(template string, args ...interface{})

func Warn

func Warn(args ...interface{})

func WarnA

func WarnA(args ...interface{})

func WarnAf

func WarnAf(template string, args ...interface{})

func WarnDelayAf

func WarnDelayAf(delay int64, template string, args ...interface{})

func WarnDelayf

func WarnDelayf(delay int64, template string, args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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