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