logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Filepath = "/var/log/azure-ipam.log"
)

Variables

This section is empty.

Functions

func New

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

NewLogger creates and returns a zap logger and a clean up function

Types

type Config

type Config struct {
	Level       string // Debug by default
	Filepath    string // default /var/log/azure-ipam.log
	MaxSizeInMB int    // MegaBytes
	MaxBackups  int    // # of backups, no limitation by default
}

Jump to

Keyboard shortcuts

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