services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnanConsoleLog

func NewAnanConsoleLog(params ...interface{}) (interface{}, error)

func NewAnanCustomLog

func NewAnanCustomLog(params ...interface{}) (interface{}, error)

自定义输出地方的日志

func NewAnanRotateLog

func NewAnanRotateLog(params ...interface{}) (interface{}, error)

NewAnanRotateLog 实例化AnanRotateLog

func NewAnanSingleLog

func NewAnanSingleLog(params ...interface{}) (interface{}, error)

Types

type AnanConsoleLog

type AnanConsoleLog struct {
	AnanLog
}

type AnanCustomLog

type AnanCustomLog struct {
	AnanLog
}

type AnanLog

type AnanLog struct {
	// contains filtered or unexported fields
}

func (*AnanLog) Debug

func (log *AnanLog) Debug(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) Error

func (log *AnanLog) Error(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) Fatal

func (log *AnanLog) Fatal(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) Info

func (log *AnanLog) Info(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) IsLevelEnable

func (log *AnanLog) IsLevelEnable(level contract.LogLevel) bool

判断这个级别是否可以打印

func (*AnanLog) Panic

func (log *AnanLog) Panic(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) SetCtxFielder

func (log *AnanLog) SetCtxFielder(hanlder contract.CtxFielder)

func (*AnanLog) SetFormatter

func (log *AnanLog) SetFormatter(formatter contract.Formatter)

func (*AnanLog) SetLevel

func (log *AnanLog) SetLevel(level contract.LogLevel)

func (*AnanLog) SetOutput

func (log *AnanLog) SetOutput(output io.Writer)

func (*AnanLog) Trace

func (log *AnanLog) Trace(ctx context.Context, msg string, fields map[string]interface{})

func (*AnanLog) Warn

func (log *AnanLog) Warn(ctx context.Context, msg string, fields map[string]interface{})

type AnanRotateLog

type AnanRotateLog struct {
	AnanLog
	// contains filtered or unexported fields
}

AnanRotateLog 代表会进行切割的日志文件存储

type AnanSingleLog

type AnanSingleLog struct {
	AnanLog
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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