Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSetLevel ¶
GetSetLevel 获取设置日志等级接口
type Level ¶
type Level int8
日志级别
func StringToLevel ¶
func (Level) MarshalText ¶
func (*Level) UnmarshalText ¶
type Logger ¶
type Logger interface { Named(name string) Logger WithArgs(args ...interface{}) Logger WithContext(ctx context.Context) Logger Debug(args ...interface{}) Debugf(format string, args ...interface{}) Debugw(message string, kvs ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Infow(message string, kvs ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Warnw(message string, kvs ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Errorw(message string, kvs ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Panicw(message string, kvs ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Fatalw(message string, kvs ...interface{}) Print(depth int, level Level, args ...interface{}) Printf(depth int, level Level, format string, args ...interface{}) Printw(depth int, level Level, message string, kvs ...interface{}) }
Logger 日志接口
Click to show internal directories.
Click to hide internal directories.