system

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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
}

func (*Log) BeanConstruct

func (l *Log) BeanConstruct()

BeanConstruct 初始化实例时,创建gin框架

func (*Log) BeanName

func (l *Log) BeanName() string

func (*Log) Debug

func (l *Log) Debug(ctx context.Context, msg string, keyAndValues ...interface{})

func (*Log) Debugw

func (l *Log) Debugw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})

func (*Log) Error

func (l *Log) Error(ctx context.Context, msg string, keyAndValues ...interface{})

func (*Log) Errorw

func (l *Log) Errorw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})

func (*Log) Info

func (l *Log) Info(ctx context.Context, msg string, keyAndValues ...interface{})

func (*Log) Infow

func (l *Log) Infow(ctx context.Context, msg string, keyAndValues ...map[string]interface{})

func (*Log) Logger

func (l *Log) Logger() *zap.Logger

func (*Log) Skip

func (l *Log) Skip(skip int) *Log

func (*Log) Warn

func (l *Log) Warn(ctx context.Context, msg string, keyAndValues ...interface{})

func (*Log) Warnw

func (l *Log) Warnw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})

func (*Log) WithOptions

func (l *Log) WithOptions(opts ...zap.Option) *Log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL