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

Struct SugaredLogger

sugar.go:55–57  ·  view source on GitHub ↗

A SugaredLogger wraps the base Logger functionality in a slower, but less verbose, API. Any Logger can be converted to a SugaredLogger with its Sugar method. Unlike the Logger, the SugaredLogger doesn't insist on structured logging. For each log level, it exposes four methods: - methods named afte

Source from the content-addressed store, hash-verified

53// Infof(string, ...any) Printf-style logging
54// Infoln(...any) Println-style logging
55type SugaredLogger struct {
56 base *Logger
57}
58
59// Desugar unwraps a SugaredLogger, exposing the original Logger. Desugaring
60// is quite inexpensive, so it's reasonable for a single application to use

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected