MCPcopy
hub / github.com/uber-go/zap / NewProduction

Function NewProduction

logger.go:100–102  ·  view source on GitHub ↗

NewProduction builds a sensible production Logger that writes InfoLevel and above logs to standard error as JSON. It's a shortcut for NewProductionConfig().Build(...Option).

(options ...Option)

Source from the content-addressed store, hash-verified

98//
99// It's a shortcut for NewProductionConfig().Build(...Option).
100func NewProduction(options ...Option) (*Logger, error) {
101 return NewProductionConfig().Build(options...)
102}
103
104// NewDevelopment builds a development Logger that writes DebugLevel and above
105// logs to standard error in a human-friendly format.

Callers

nothing calls this directly

Calls 2

NewProductionConfigFunction · 0.85
BuildMethod · 0.80

Tested by

no test coverage detected