Documentation ¶ Index ¶ Constants func New(cfg *Config) (*zap.Logger, func(), error) type Config 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 } Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.