Documentation ¶
Index ¶
- Constants
- Variables
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Default() *logrus.Logger
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Init()
- func Panicln(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetHookSentry(client *raven.Client) error
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- func WithGinContext(ctx *gin.Context) context.Context
- func WithGrpcMetadata(ctx context.Context) context.Context
Constants ¶
View Source
const ( // TraceIDKey 跟踪ID TraceIDKey = "trace_id" // SpanIDKey 请求ID SpanIDKey = "span_id" // UserIDKey 用户ID UserIDKey = "user_id" )
View Source
const ( // XTraceIDKey ... XTraceIDKey = "X-Trace-Id" // XSpanIDKey ... XSpanIDKey = "X-Span-Id" )
Variables ¶
View Source
var ( // Level 日志等级 Level = "debug" // panic/fatal/error/warn/info/debug )
Functions ¶
func SetHookSentry ¶
func SetHookSentry(client *raven.Client) error
SetHookSentry register sentry hook with a DSN key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.