Documentation ¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugx(ctx context.Context, args ...interface{})
- func Debugxf(ctx context.Context, format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorx(ctx context.Context, args ...interface{})
- func Errorxf(ctx context.Context, format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalx(ctx context.Context, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infox(ctx context.Context, args ...interface{})
- func Infoxf(ctx context.Context, format string, args ...interface{})
- func Init() error
- func IsLevelEnabled(lvl Level) bool
- func SetLevel(lvl Level)
- func SetOutput(out io.Writer)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Tracex(ctx context.Context, args ...interface{})
- func Tracexf(ctx context.Context, format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnx(ctx context.Context, args ...interface{})
- func Warnxf(ctx context.Context, format string, args ...interface{})
- type Entry
- type Level
Constants ¶
View Source
const ( CtxKeyApiMethod = "api_method" CtxKeyApiParams = "api_params" CtxKeyApiReqId = "api_reqid" CtxKeyBlockHash = "block_hash" CtxKeyBlockNumber = "block_num" CtxKeyConn = "conn" CtxKeyDuration = "duration" CtxKeyError = "err" CtxKeyUniqId = "uuid" CtxKeyUserId = "user_id" )
View Source
const DebugLevel = logrus.DebugLevel
View Source
const ErrorLevel = logrus.ErrorLevel
View Source
const FatalLevel = logrus.FatalLevel
View Source
const InfoLevel = logrus.InfoLevel
View Source
const TraceLevel = logrus.TraceLevel
Variables ¶
This section is empty.
Functions ¶
func IsLevelEnabled ¶
Types ¶
type Entry ¶
func WithFieldsFromContext ¶
Click to show internal directories.
Click to hide internal directories.