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

Struct AtomicLevel

level.go:71–73  ·  view source on GitHub ↗

An AtomicLevel is an atomically changeable, dynamic logging level. It lets you safely change the log level of a tree of loggers (the root logger and any children created by adding context) at runtime. The AtomicLevel itself is an http.Handler that serves a JSON endpoint to alter its level. AtomicL

Source from the content-addressed store, hash-verified

69// AtomicLevels must be created with the NewAtomicLevel constructor to allocate
70// their internal atomic pointer.
71type AtomicLevel struct {
72 l *atomic.Int32
73}
74
75var _ internal.LeveledEnabler = AtomicLevel{}
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected