zaplog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGPATH = ""
)

Variables

This section is empty.

Functions

func Init

func Init(opts ...ConfigOption) (*zap.Logger, string, error)

func LogLevelHttpServer

func LogLevelHttpServer(config *zaplogConfig, level zap.AtomicLevel) string

Types

type ConfigOption

type ConfigOption interface {
	// contains filtered or unexported methods
}

func SetCompress

func SetCompress(compress bool) ConfigOption

func SetFiled

func SetFiled(key, value string) ConfigOption

func SetIsDevelop

func SetIsDevelop(flag bool) ConfigOption

func SetListenAddr

func SetListenAddr(listenAddr string) ConfigOption

func SetLogApiPath

func SetLogApiPath(logApiPath string) ConfigOption

func SetLogPath

func SetLogPath(path string) ConfigOption

func SetMaxAge

func SetMaxAge(age int) ConfigOption

func SetMaxBackups

func SetMaxBackups(backups int) ConfigOption

func SetMaxSize

func SetMaxSize(size int) ConfigOption

Jump to

Keyboard shortcuts

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