Versions in this module Expand all Collapse all v1 v1.1.0 Dec 5, 2018 v1.0.0 Nov 30, 2018 Changes in this version + const FieldKeyTraceID + const FieldKeyType + const FieldKeyUserID + func Access(traceID string, userID ...string) *logrus.Entry + func AccessWithContext(ctx context.Context) *logrus.Entry + func Login(traceID string, userID string) *logrus.Entry + func LoginWithContext(ctx context.Context) *logrus.Entry + func Middleware(allowPrefixes ...string) gin.HandlerFunc + func Operate(traceID string, userID ...string) *logrus.Entry + func OperateWithContext(ctx context.Context) *logrus.Entry + func System(traceID string, userID ...string) *logrus.Entry + func SystemWithContext(ctx context.Context) *logrus.Entry + type HookFlusher interface + Flush func() + type Logger struct + func Default() *Logger + func New(opts ...Option) *Logger + func (a *Logger) Access(traceID string, userID ...string) *logrus.Entry + func (a *Logger) Login(traceID string, userID string) *logrus.Entry + func (a *Logger) Operate(traceID string, userID ...string) *logrus.Entry + func (a *Logger) System(traceID string, userID ...string) *logrus.Entry + type Option func(o *options) + func SetFormat(format string) Option + func SetLevel(level int) Option