logger

package
v0.0.0-...-fc28810 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *zap.Logger

DefaultLogger,stdout

func NewLogger

func NewLogger(infoConfig, errorConfig *LogConfig) (*zap.Logger, error)

Types

type LogConfig

type LogConfig struct {
	LogPath    string `json:"path" yaml:"path"`
	MaxSize    int    `json:"size" yaml:"size"`
	MaxBackups int    `json:"backups" yaml:"backups"`
	MaxAge     int    `json:"age" yaml:"age"`
}

Jump to

Keyboard shortcuts

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