logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cnf *Config) (*zap.Logger, error)

New creates a new Production logger and sets as the global logger

Types

type Config

type Config struct {
	OutputPaths       []string
	ErrorOutputPaths  []string
	LogFileName       string
	MaxLogSizeMB      int
	Backups           int
	MaxAgeDays        int
	DisableCaller     bool
	DisableStacktrace bool
}

Config is the logger configuration

func DefaultConfig

func DefaultConfig() *Config

Jump to

Keyboard shortcuts

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