Documentation ¶
Index ¶
- func AddESHook(level logrus.Level, urls ...string)
- func Debug(ctx context.Context, args ...interface{})
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Debugln(ctx context.Context, args ...interface{})
- func Error(ctx context.Context, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Errorln(ctx context.Context, args ...interface{})
- func Fatal(ctx context.Context, args ...interface{})
- func Fatalf(ctx context.Context, format string, args ...interface{})
- func Fatalln(ctx context.Context, args ...interface{})
- func GetCurLevel() logrus.Level
- func GetLocalIP() (string, error)
- func Info(ctx context.Context, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func Infoln(ctx context.Context, args ...interface{})
- func IsDebugLevel() bool
- func IsLogLevel(level int) bool
- func Level() logrus.Level
- func Panic(ctx context.Context, args ...interface{})
- func Panicf(ctx context.Context, format string, args ...interface{})
- func Panicln(ctx context.Context, args ...interface{})
- func Print(ctx context.Context, args ...interface{})
- func Printf(ctx context.Context, format string, args ...interface{})
- func Println(ctx context.Context, args ...interface{})
- func SetLevel(level logrus.Level)
- func SetServiceName(serviceName string)
- func UseJSONFormatter()
- func UseTextFormatter()
- func Warn(ctx context.Context, args ...interface{})
- func Warnf(ctx context.Context, format string, args ...interface{})
- func Warning(ctx context.Context, args ...interface{})
- func Warningf(ctx context.Context, format string, args ...interface{})
- func Warningln(ctx context.Context, args ...interface{})
- func Warnln(ctx context.Context, args ...interface{})
- type ILogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurLevel ¶
GetCurLevel (Alias Name Of Level() func) return result from Level()
func SetServiceName ¶
func SetServiceName(serviceName string)
SetServiceName 优先于环境变量 环境变量名LOGGER_SERVICENAME
Types ¶
Click to show internal directories.
Click to hide internal directories.