common

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Engine        string `yaml:"engine"`         // 日志引擎
	Level         string `yaml:"level"`          // 级别
	Prefix        string `yaml:"prefix"`         // 日志前缀
	Format        string `yaml:"format"`         // 输出
	Director      string `yaml:"director"`       // 日志文件夹
	Encoder       string `yaml:"encoder"`        // 编码级
	StacktraceKey string `yaml:"stacktrace-key"` // 栈名
	MaxAge        int64  `yaml:"max-age"`        // 日志留存时间
	ShowLine      bool   `yaml:"show-line"`      // 显示行
	Std           bool   `yaml:"std"`            // 是否控制台打印
}

Jump to

Keyboard shortcuts

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