logx

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg ...interface{})

Debug 使用默认的日志处理器输出

func DebugFunc

func DebugFunc(f func() []interface{})

DebugFunc 使用默认的日志处理器输出

func Error

func Error(msg ...interface{})

Error 使用默认的日志处理器输出

func Fail

func Fail(msg ...interface{})

Fail 使用默认的日志处理器输出

func Fatal

func Fatal(msg ...interface{})

Fatal 使用默认的日志处理器输出

func Info

func Info(msg ...interface{})

Info 使用默认的日志处理器输出

func InfoFunc

func InfoFunc(f func() []interface{})

InfoFunc 使用默认的日志处理器输出

func Logger

func Logger() iface.ILogger

func Msg

func Msg(msg ...interface{})

Msg 使用默认的日志处理器输出

func Ok

func Ok(msg ...interface{})

Ok 使用默认的日志处理器输出

func RegisterDefault

func RegisterDefault(val iface.ILogger)

RegisterDefault 注册默认的日志处理器

func RegisterLogger

func RegisterLogger(key string, val iface.ILogger)

RegisterLogger 注册指定标签[key]的日志处理器 关联 logx.UseLogger

func UseLogger

func UseLogger(key string) (val iface.ILogger)

UseLogger 获取指定的日志处理器

func Warn

func Warn(msg ...interface{})

Warn 使用默认的日志处理器输出

func With

func With(m M) iface.ILogger

With 输出时携带的参数

Types

type M

type M map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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