log

package module
v0.0.0-...-ac2ae5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 4 Imported by: 0

README

log

log

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Init

func Init(config *Config)

func NewLogger

func NewLogger(conf *Config) *zap.Logger

func NewSugaredLogger

func NewSugaredLogger(conf *Config) *zap.SugaredLogger

Types

type Config

type Config struct {
	Sugar  bool
	Level  int
	File   string
	Path   string
	Rotate RotateConfig
}

type RotateConfig

type RotateConfig struct {
	Compress   bool
	MaxSize    int
	MaxAge     int
	MaxBackups int
}

Jump to

Keyboard shortcuts

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