glog

package
v2.1.54 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger sync.Map
)

Functions

func Debug

func Debug(args ...interface{})

func DebugC added in v2.1.18

func DebugC(ctx context.Context, format string, args ...interface{})

func DebugF

func DebugF(format string, args ...interface{})

func DebugV added in v2.1.18

func DebugV(ctx context.Context, keyvals ...interface{})

func DebugW added in v2.1.18

func DebugW(keyvals ...interface{})

func DelLogger added in v2.0.10

func DelLogger(name string)

DelLogger删除日志插件

func Error

func Error(args ...interface{})

func ErrorC added in v2.1.18

func ErrorC(ctx context.Context, format string, args ...interface{})

func ErrorF

func ErrorF(format string, args ...interface{})

func ErrorV added in v2.1.18

func ErrorV(ctx context.Context, keyvals ...interface{})

func ErrorW added in v2.1.18

func ErrorW(keyvals ...interface{})

func Fatal added in v2.1.11

func Fatal(args ...interface{})

func FatalC added in v2.1.18

func FatalC(ctx context.Context, format string, args ...interface{})

func FatalF added in v2.1.11

func FatalF(format string, args ...interface{})

func FatalV added in v2.1.18

func FatalV(ctx context.Context, keyvals ...interface{})

func FatalW added in v2.1.18

func FatalW(keyvals ...interface{})

func Info

func Info(args ...interface{})

func InfoC added in v2.1.18

func InfoC(ctx context.Context, format string, args ...interface{})

func InfoF

func InfoF(format string, args ...interface{})

func InfoV added in v2.1.18

func InfoV(ctx context.Context, keyvals ...interface{})

func InfoW added in v2.1.18

func InfoW(keyvals ...interface{})

func NewDBLogger added in v2.1.51

func NewDBLogger(debug bool, slowThreshold time.Duration) logger.Interface

NewDBLogger initialize db logger

func SetLogger added in v2.0.10

func SetLogger(name string, logger logx.GLog)

SetLogger设置日志打印实例,选择输出到文件,终端,阿里云日志等

func Warn

func Warn(args ...interface{})

func WarnC added in v2.1.18

func WarnC(ctx context.Context, format string, args ...interface{})

func WarnF

func WarnF(format string, args ...interface{})

func WarnV added in v2.1.18

func WarnV(ctx context.Context, keyvals ...interface{})

func WarnW added in v2.1.18

func WarnW(keyvals ...interface{})

func WithCallerSkipCtx added in v2.1.54

func WithCallerSkipCtx(ctx context.Context, skip int) context.Context

WithCallerSkipCtx 提供设置日志自定义source位置的入口 默认是3,当需要增加该值,可以设置获得更外层的

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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