Documentation ¶
Index ¶
- type Log
- func (l *Log) BeanConstruct()
- func (l *Log) BeanName() string
- func (l *Log) Debug(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *Log) Debugw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *Log) Error(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *Log) Errorw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *Log) Info(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *Log) Infow(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *Log) Logger() *zap.Logger
- func (l *Log) Skip(skip int) *Log
- func (l *Log) Warn(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *Log) Warnw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *Log) WithOptions(opts ...zap.Option) *Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Name string `value:"log.name"` Dir string `value:"log.dir"` MaxAge int `value:"log.max-age"` // 存活日期,单位天 DebugMode bool `value:"log.debug"` Std bool `value:"log.std"` File bool `value:"log.file"` TraceName string `value:"log.trace-Name"` // 会话追踪名称 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.