lib

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CueScheme added in v1.1.1

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

func NewCueScheme added in v1.1.1

func NewCueScheme() *CueScheme

func (*CueScheme) AddScheme added in v1.1.1

func (this *CueScheme) AddScheme(name string, v cue.Value)

AddScheme 注册scheme

func (*CueScheme) GetScheme added in v1.1.1

func (this *CueScheme) GetScheme(name string) (cue.Value, error)

GetScheme 获取cue.value

func (*CueScheme) MustGetScheme added in v1.1.1

func (this *CueScheme) MustGetScheme(name string) cue.Value

MustGetScheme 获取cue.value

type LevelEnablerFunc

type LevelEnablerFunc func(lvl *zapcore.Level) bool

type LoggingImpl

type LoggingImpl struct {
	*zap.Logger
}

func Logger

func Logger() *LoggingImpl

Logger 获取日志对象

func (*LoggingImpl) Error

func (this *LoggingImpl) Error(msg string, fields ...zap.Field)

重写父类方法

func (*LoggingImpl) GetStack

func (this *LoggingImpl) GetStack(kb int) string

GetStack 获取堆栈信息

type RotateOptions

type RotateOptions struct {
	MaxSize    int
	MaxAge     int
	MaxBackups int
	Compress   bool
}

type TeeOption

type TeeOption struct {
	Filename string
	Ropt     RotateOptions
	Lef      LevelEnablerFunc
}

Jump to

Keyboard shortcuts

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