plog

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputJsonType = "json"
)

Variables

View Source
var (
	ProviderSetPLog = wire.NewSet(NewLogger)
)

Functions

func NewLogger

func NewLogger(c Config) log.Logger

NewLogger new a logger.

func NewZapLog

func NewZapLog(c Config) *zap.Logger

Types

type Config

type Config interface {
	GetFilename() string
	GetLevel() string
	GetMaxSize() int32
	GetMaxBackups() int32
	GetMaxAge() int32
	GetCompress() bool
	GetLocalTime() bool
	GetEncoder() string
}

Jump to

Keyboard shortcuts

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